The number 24187 (twenty-four thousand one hundred eighty-seven) is written in Roman numerals as follows: XXIVCLXXXVII