The entire lifetime of Lamech was 777 years, and then he died.
Lamech lived 595 years after he became the father of Noah, and he had other sons and daughters.
After Noah was 500 years old, he became the father of Shem, Ham, and Japheth.