The number 31239 (thirty-one thousand two hundred thirty-nine) is written in Roman numerals as follows: XXXICCXXXIX