N=int(eval(input("")))

if N % 10 == 7 or (N - N % 10) / 10 % 10 == 7 or (N - N % 100)/100 == 7:

  print("Yes")

else:

  print("No")
N=int(eval(input("")))

if N % 10 == 7 or N // 10 % 10 == 7 or N //100 == 7:

  print("Yes")

else:

  print("No")
N = int(eval(input("")))
if N % 10 == 7 or (N - N % 10) / 10 % 10 == 7 or (N - N % 100) / 100 == 7:
    print("Yes")
else:
    print("No")

N = int(eval(input("")))
if N % 10 == 7 or N // 10 % 10 == 7 or N // 100 == 7:
    print("Yes")
else:
    print("No")

-if N % 10 == 7 or (N - N % 10) / 10 % 10 == 7 or (N - N % 100) / 100 == 7: +if N % 10 == 7 or N // 10 % 10 == 7 or N // 100 == 7: