The number 9878 (nine thousand eight hundred seventy-eight) is written in Roman numerals as follows: IXDCCCLXXVIII