6039 in words is written as :

Six Thousand Thirty Nine