The number 31904 (thirty-one thousand nine hundred four) is written in Roman numerals as follows: XXXICMIV