The number 987171 (nine hundred eighty-seven thousand one hundred seventy-one) is written in Roman numerals as follows: CMLXXXVIICLXXI