The number 10871 (ten thousand eight hundred seventy-one) is written in Roman numerals as follows: XDCCCLXXI