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