n=eval(input())

a=int(n)%10

b=((int(n)-a)/10)%10

f="No"

if a==7:

    f="Yes"

if b==7:

    f="Yes"

if 700<=int(n)<800:

    f="Yes"

print(f)

n=eval(input())

f="No"

if "7"in n:

    f="Yes"

print(f)
n = eval(input())
a = int(n) % 10
b = ((int(n) - a) / 10) % 10
f = "No"
if a == 7:
    f = "Yes"
if b == 7:
    f = "Yes"
if 700 <= int(n) < 800:
    f = "Yes"
print(f)

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

-a = int(n) % 10 -b = ((int(n) - a) / 10) % 10 -if a == 7: -    f = "Yes" -if b == 7: -    f = "Yes" -if 700 <= int(n) < 800: +if "7" in n: