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