The number 18171 (eighteen thousand one hundred seventy-one) is written in Roman numerals as follows: XVIIICLXXI