20017 in words is written as :

Twenty Thousand Seventeen