The number 19871 (nineteen thousand eight hundred seventy-one) is written in Roman numerals as follows: XIXDCCCLXXI