The number 12789 (twelve thousand seven hundred eighty-nine) is written in Roman numerals as follows: XIIDCCLXXXIX