And all the days of Lamech were seven hundred seventy and seven years: and he died.
So Lamech lived a total of 777 years, and then he died.
Read Genesis 5