The number 21727 (twenty-one thousand seven hundred twenty-seven) is written in Roman numerals as follows: XXIDCCXXVII