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