The number 12171 (twelve thousand one hundred seventy-one) is written in Roman numerals as follows: XIICLXXI