The number 9877 (nine thousand eight hundred seventy-seven) is written in Roman numerals as follows: IXDCCCLXXVII