if '7' in eval(input()):

    print("Yes")

else:

    print("No")

print(("YNeos"['7' not in eval(input())::2]))

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

print(("YNeos"["7" not in eval(input()) :: 2]))

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