The number 20271 (twenty thousand two hundred seventy-one) is written in Roman numerals as follows: XXCCLXXI