The number 318021 (three hundred eighteen thousand twenty-one) is written in Roman numerals as follows: CCCXVIIIXXI