30039 in words is written as :

Thirty Thousand Thirty Nine