The number 31945 (thirty-one thousand nine hundred forty-five) is written in Roman numerals as follows: XXXICMXLV