The number 21827 (twenty-one thousand eight hundred twenty-seven) is written in Roman numerals as follows: XXIDCCCXXVII