16789 in words is written as :

Sixteen Thousand Seven Hundred and Eighty Nine