The number 8871 (eight thousand eight hundred seventy-one) is written in Roman numerals as follows: VIIIDCCCLXXI