The number 12787 (twelve thousand seven hundred eighty-seven) is written in Roman numerals as follows: XIIDCCLXXXVII