The number 23271 (twenty-three thousand two hundred seventy-one) is written in Roman numerals as follows: XXIIICCLXXI