וַֽיְהִי֙ כָּל־יְמֵי־לֶ֔מֶךְ שֶׁ֤בַע וְשִׁבְעִים֙ שָׁנָ֔ה וּשְׁבַ֥ע מֵא֖וֹת שָׁנָ֑ה וַיָּמֹֽת׃ (ס)
And all the days of Lamech were seven hundred seventy and seven years; and he died.
Read kabbalistic (mystical) interpretation of Genesis 5:31: and classical mystical sources.