5239 in words is written as :

Five Thousand Two Hundred and Thirty Nine