The number 877986 (eight hundred seventy-seven thousand nine hundred eighty-six) is written in Roman numerals as follows: DCCCLXXVIICMLXXXVI