The number 31218 (thirty-one thousand two hundred eighteen) is written in Roman numerals as follows: XXXICCXVIII