The number 31365 (thirty-one thousand three hundred sixty-five) is written in Roman numerals as follows: XXXICCCLXV