The number 21945 (twenty-one thousand nine hundred forty-five) is written in Roman numerals as follows: XXICMXLV