6017 in words is written as :

Six Thousand Seventeen