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