The number 24887 (twenty-four thousand eight hundred eighty-seven) is written in Roman numerals as follows: XXIVDCCCLXXXVII