The number 31223 (thirty-one thousand two hundred twenty-three) is written in Roman numerals as follows: XXXICCXXIII