The number 997021 (nine hundred ninety-seven thousand twenty-one) is written in Roman numerals as follows: CMXCVIIXXI