The entire lifetime of Lamech was 777 years, and then he died. 