The number 40421 (forty thousand four hundred twenty-one) is written in Roman numerals as follows: XLCDXXI