The number 16871 (sixteen thousand eight hundred seventy-one) is written in Roman numerals as follows: XVIDCCCLXXI