The number 35871 (thirty-five thousand eight hundred seventy-one) is written in Roman numerals as follows: XXXVDCCCLXXI