n = list(eval(input()))

if "7" in n:

    print("Yes")

else:

    print("No")

S=int(eval(input()))

result = 0

while S >0:

    S, m = divmod(S,10)

    if m ==7:

        result = 1

        break

if result ==1:

    print("Yes")

else:

    print("No")

        
n = list(eval(input()))
if "7" in n:
    print("Yes")
else:
    print("No")

S = int(eval(input()))
result = 0
while S > 0:
    S, m = divmod(S, 10)
    if m == 7:
        result = 1
        break
if result == 1:
    print("Yes")
else:
    print("No")

-n = list(eval(input())) -if "7" in n: +S = int(eval(input())) +result = 0 +while S > 0: +    S, m = divmod(S, 10) +    if m == 7: +        result = 1 +        break +if result == 1: