The number 12589 (twelve thousand five hundred eighty-nine) is written in Roman numerals as follows: XIIDLXXXIX