The number 104871 (one hundred four thousand eight hundred seventy-one) is written in Roman numerals as follows: CIVDCCCLXXI