The number 31245 (thirty-one thousand two hundred forty-five) is written in Roman numerals as follows: XXXICCXLV