The number 31718 (thirty-one thousand seven hundred eighteen) is written in Roman numerals as follows: XXXIDCCXVIII