The number 3989 (three thousand nine hundred eighty-nine) is written in Roman numerals as follows: MMMCMLXXXIX