The number 38271 (thirty-eight thousand two hundred seventy-one) is written in Roman numerals as follows: XXXVIIICCLXXI