18789 in words is written as :

Eighteen Thousand Seven Hundred and Eighty Nine