Lamech lived after the birth of Noah 595 years and had other sons and daughters.
He named him Noah, saying, This one shall bring us relief and comfort from our work and the [grievous] toil of our hands due to the ground being cursed by the Lord.
So all the days of Lamech were 777 years, and he died.
After he had Seth, Adam lived 800 years and had other sons and daughters.