The number 2987 (two thousand nine hundred eighty-seven) is written in Roman numerals as follows: MMCMLXXXVII