string=eval(input())

if "7" in string:

  print('Yes')

else:

  print('No')
string=eval(input())

t=False

for i in range (len(string)):

  if string[i]=="7":

    t=True

if t==True:

  print("Yes")

else:

  print("No")

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

string = eval(input())
t = False
for i in range(len(string)):
    if string[i] == "7":
        t = True
if t == True:
    print("Yes")
else:
    print("No")

-if "7" in string: +t = False +for i in range(len(string)): +    if string[i] == "7": +        t = True +if t == True: