The number 871027 (eight hundred seventy-one thousand twenty-seven) is written in Roman numerals as follows: DCCCLXXIXXVII