The number 38671 (thirty-eight thousand six hundred seventy-one) is written in Roman numerals as follows: XXXVIIIDCLXXI