The number 17987 (seventeen thousand nine hundred eighty-seven) is written in Roman numerals as follows: XVIICMLXXXVII