Genesis 5:31 in the King James Version
And all the days of Lamech were seven hundred seventy and seven years: and he died.
Context
30 Lamech lived after he became the father of Noah five hundred ninety-five years, and became the father of other sons and daughters.
31 All the days of Lamech were seven hundred seventy-seven years, then he died.
32 Noah was five hundred years old, then Noah became the father of Shem, Ham, and Japheth.