The number 12487 (twelve thousand four hundred eighty-seven) is written in Roman numerals as follows: XIICDLXXXVII