The number 24877 (twenty-four thousand eight hundred seventy-seven) is written in Roman numerals as follows: XXIVDCCCLXXVII