The number 97871 (ninety-seven thousand eight hundred seventy-one) is written in Roman numerals as follows: XCVIIDCCCLXXI