12977 in words is written as :

Twelve Thousand Nine Hundred and Seventy Seven