The number 31221 (thirty-one thousand two hundred twenty-one) is written in Roman numerals as follows: XXXICCXXI