The number 31958 (thirty-one thousand nine hundred fifty-eight) is written in Roman numerals as follows: XXXICMLVIII