20589 in words is written as :

Twenty Thousand Five Hundred and Eighty Nine