The number 20789 (twenty thousand seven hundred eighty-nine) is written in Roman numerals as follows: XXDCCLXXXIX