The number 50871 (fifty thousand eight hundred seventy-one) is written in Roman numerals as follows: LDCCCLXXI