20717 in words is written as :

Twenty Thousand Seven Hundred and Seventeen