The number 18271 (eighteen thousand two hundred seventy-one) is written in Roman numerals as follows: XVIIICCLXXI