The number 21777 (twenty-one thousand seven hundred seventy-seven) is written in Roman numerals as follows: XXIDCCLXXVII