The number 12587 (twelve thousand five hundred eighty-seven) is written in Roman numerals as follows: XIIDLXXXVII