The number 16787 (sixteen thousand seven hundred eighty-seven) is written in Roman numerals as follows: XVIDCCLXXXVII