The number 31954 (thirty-one thousand nine hundred fifty-four) is written in Roman numerals as follows: XXXICMLIV