The number 21187 (twenty-one thousand one hundred eighty-seven) is written in Roman numerals as follows: XXICLXXXVII