The number 31704 (thirty-one thousand seven hundred four) is written in Roman numerals as follows: XXXIDCCIV