The number 38821 (thirty-eight thousand eight hundred twenty-one) is written in Roman numerals as follows: XXXVIIIDCCCXXI