n = str(eval(input()))

ans=False

for c in n:

  if c == '7':

    ans=True

if ans:

  print("Yes")

else:

  print("No")

n = eval(input())

if "7" in n:

    print("Yes")

else:

    print("No")



n = str(eval(input()))
ans = False
for c in n:
    if c == "7":
        ans = True
if ans:
    print("Yes")
else:
    print("No")

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

-n = str(eval(input())) -ans = False -for c in n: -    if c == "7": -        ans = True -if ans: +n = eval(input()) +if "7" in n: