The number 20987 (twenty thousand nine hundred eighty-seven) is written in Roman numerals as follows: XXCMLXXXVII