The number 31999 (thirty-one thousand nine hundred ninety-nine) is written in Roman numerals as follows: XXXICMXCIX