The number 24227 (twenty-four thousand two hundred twenty-seven) is written in Roman numerals as follows: XXIVCCXXVII