The number 9987 (nine thousand nine hundred eighty-seven) is written in Roman numerals as follows: IXCMLXXXVII