The number 9887 (nine thousand eight hundred eighty-seven) is written in Roman numerals as follows: IXDCCCLXXXVII