The number 20171 (twenty thousand one hundred seventy-one) is written in Roman numerals as follows: XXCLXXI