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