50704 in words is written as :

Fifty Thousand Seven Hundred and Four