27798 in words is written as :

Thousand Seven Hundred and Ninety Eight