The number 318172 (three hundred eighteen thousand one hundred seventy-two) is written in Roman numerals as follows: CCCXVIIICLXXII