n = eval(input())

if n[0] == '7' or n[1] == '7' or n[2] == '7':

    ans = 'Yes'

else:

    ans = 'No'



print(ans)
n = eval(input())

print(('Yes' if '7' in n else 'No'))
n = eval(input())
if n[0] == "7" or n[1] == "7" or n[2] == "7":
    ans = "Yes"
else:
    ans = "No"
print(ans)

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

-if n[0] == "7" or n[1] == "7" or n[2] == "7": -    ans = "Yes" -else: -    ans = "No" -print(ans) +print(("Yes" if "7" in n else "No"))