The number 96787 (ninety-six thousand seven hundred eighty-seven) is written in Roman numerals as follows: XCVIDCCLXXXVII