The number 18987 (eighteen thousand nine hundred eighty-seven) is written in Roman numerals as follows: XVIIICMLXXXVII