The number 24987 (twenty-four thousand nine hundred eighty-seven) is written in Roman numerals as follows: XXIVCMLXXXVII