The number 21977 (twenty-one thousand nine hundred seventy-seven) is written in Roman numerals as follows: XXICMLXXVII