n = int(eval(input()))

while n!=0:

    if n%10 == 7:

        print("Yes")

        break

    n//=10

else:

    print("No")
N = eval(input())

condition = False

for i in str(N):

  if (i=='7'):

      condition = True



if condition:

    print("Yes")

else:

    print("No")

n = int(eval(input()))
while n != 0:
    if n % 10 == 7:
        print("Yes")
        break
    n //= 10
else:
    print("No")

N = eval(input())
condition = False
for i in str(N):
    if i == "7":
        condition = True
if condition:
    print("Yes")
else:
    print("No")

-n = int(eval(input())) -while n != 0: -    if n % 10 == 7: -        print("Yes") -        break -    n //= 10 +N = eval(input()) +condition = False +for i in str(N): +    if i == "7": +        condition = True +if condition: +    print("Yes")