The number 9876 (nine thousand eight hundred seventy-six) is written in Roman numerals as follows: IXDCCCLXXVI