18704 in words is written as :

Eighteen Thousand Seven Hundred and Four