The number 838221 (eight hundred thirty-eight thousand two hundred twenty-one) is written in Roman numerals as follows: DCCCXXXVIIICCXXI