5999977 in words is written as :

Five Million Thousand Nine Hundred and Seventy Seven