4077 in words is written as :

Four Thousand Seventy Seven