So Lamech lived a total of 777 years; then he died.
After Noah was born, Lamech lived 595 years and had other sons and daughters.
After Noah was 500 years old, he had sons named Shem, Ham, and Japheth.