print(('NYoe s'['7'in eval(input())::2]))
if'7'in eval(input()):print('Yes')

else:print('No')

print(("NYoe s"["7" in eval(input()) :: 2]))

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

-print(("NYoe s"["7" in eval(input()) :: 2])) +if "7" in eval(input()): +    print("Yes") +else: +    print("No")