10039 in words is written as :

Ten Thousand Thirty Nine