The number 31371 (thirty-one thousand three hundred seventy-one) is written in Roman numerals as follows: XXXICCCLXXI