The number 31918 (thirty-one thousand nine hundred eighteen) is written in Roman numerals as follows: XXXICMXVIII