The number 10787 (ten thousand seven hundred eighty-seven) is written in Roman numerals as follows: XDCCLXXXVII