9797 in words is written as :

Nine Thousand Seven Hundred and Ninety Seven