5847 in words is written as :

Five Thousand Eight Hundred and Forty Seven