The number 104987 (one hundred four thousand nine hundred eighty-seven) is written in Roman numerals as follows: CIVCMLXXXVII