The number 21704 (twenty-one thousand seven hundred four) is written in Roman numerals as follows: XXIDCCIV