The number 31237 (thirty-one thousand two hundred thirty-seven) is written in Roman numerals as follows: XXXICCXXXVII