Class Main
    Public Shared Sub Main()
        Dim N As String = Console.ReadLine()
        If N.IndexOf("7") < 0 Then
            Console.WriteLine("No")
        Else
            Console.WriteLine("Yes")
        End If
    End Sub
End Class