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