The number 987123 (nine hundred eighty-seven thousand one hundred twenty-three) is written in Roman numerals as follows: CMLXXXVIICXXIII