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