#!/usr/bin/env python

import sys

from collections import Counter

from itertools import permutations, combinations

from fractions import gcd

from math import ceil, floor

sys.setrecursionlimit(10 ** 6)



def input():

    return sys.stdin.readline()[:-1]



def main():

    N = eval(input())

    flag = False

    for l in N:

        if l == '7':

            flag = True

        else:

            pass

    if flag:

        print("Yes")

    else:

        print("No")



if __name__ == '__main__':

    main()



x = eval(input())

for l in x:

    if l == "7":

        print("Yes")

        exit()

print("No")
#!/usr/bin/env python
import sys
from collections import Counter
from itertools import permutations, combinations
from fractions import gcd
from math import ceil, floor

sys.setrecursionlimit(10**6)


def input():
    return sys.stdin.readline()[:-1]


def main():
    N = eval(input())
    flag = False
    for l in N:
        if l == "7":
            flag = True
        else:
            pass
    if flag:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

x = eval(input())
for l in x:
    if l == "7":
        print("Yes")
        exit()
print("No")

-#!/usr/bin/env python -import sys -from collections import Counter -from itertools import permutations, combinations -from fractions import gcd -from math import ceil, floor - -sys.setrecursionlimit(10**6) - - -def input(): -    return sys.stdin.readline()[:-1] - - -def main(): -    N = eval(input()) -    flag = False -    for l in N: -        if l == "7": -            flag = True -        else: -            pass -    if flag: +x = eval(input()) +for l in x: +    if l == "7": -    else: -        print("No") - - -if __name__ == "__main__": -    main() +        exit() +print("No")