5059 in words is written as :

Five Thousand Fifty Nine