The number 166987 (one hundred sixty-six thousand nine hundred eighty-seven) is written in Roman numerals as follows: CLXVICMLXXXVII