The number 98171 (ninety-eight thousand one hundred seventy-one) is written in Roman numerals as follows: XCVIIICLXXI