The number 22227 (twenty-two thousand two hundred twenty-seven) is written in Roman numerals as follows: XXIICCXXVII