Problem:
 Score : 100 points    Problem Statement Given is a three-digit integer N . Does N contain the digit 7 ?  If so, print Yes ; otherwise, print No .      Constraints  100 \leq N \leq 999         Input Input is given from Standard Input in the following format:  N       Output If N contains the digit 7 , print Yes ; otherwise, print No .        Sample Input 1 117      Sample Output 1 Yes  117 contains 7 as its last digit.       Sample Input 2 123      Sample Output 2 No  123 does not contain the digit 7 .       Sample Input 3 777      Sample Output 3 Yes

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7
import numpy as np
 
N = INT()
a = N//100
N %= 100
b = N//10
N %= 10
c = N
 
if a == 7 or b == 7 or c == 7:
  print("Yes")
else:
  print("No")

Solution (Python):
N=input()
N=str(N)
if N[0]=="7" or N[1]=="7" or N[2]=="7":
    print("Yes")
else:
            print("No")

Solution (Python):
n = int(input())

if int(n / 100) == 7 or int((n % 100) / 10) == 7 or n % 10 == 7:
    print('Yes')
else:print('No')

Solution (Python):
number = input()
  
if '7' in number:
	print("Yes")
else:
	print("No")

Solution (Python):
s = input()
if '7' in s:
    print('Yes')
else:
    print('No')

Solution (Python):
n=input()

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

Solution (Python):
N=(input())
x=N.count("7")
if x>0:
    print("Yes")
else:
    print("No")

Solution (Python):
n=input()
count=0
for i in range(3):
    if n[i]=='7':
        count+=1
if count>=1:
        print('Yes')
else:
        print('No')

Solution (Python):
N = str(input())



if '7' in N :
  print("Yes")
else:
  print("No")

Solution (Python):
n = input()
if n[0] == "7" or n[1] == "7" or n[2] == "7":
    print("Yes")
else:
    print("No")

Solution (Python):
list_num = list(input())
list_num = [int(i) for i in list_num]

if 7 in list_num:
    print('Yes')
else:
    print('No')

Solution (Python):
N = str(input())
if (N[0] == '7')or(N[1] == '7')or(N[2] == '7'):
    print('Yes')
else:
    print('No')

Solution (Python):

N = int(input())
M = str(N)
List = []
for i in M:
    if i == '7':
        List.append(i)
    else:
        pass
if len(List) != 0:
    print('Yes')
else:
    print('No')

Solution (Python):
li=list(str(input()))
if '7' in li:
    print('Yes')
else:
    print('No')

Solution (Python):
n = int(input())
li = list(str(n))
if '7' in li:
    print('Yes')
else:
    print('No')

Solution (Python):
s=input()

ans=False
for i in range(3):
    if(s[i]=='7'):
        ans=True

if(ans):
    print("Yes")
else:
    print("No")

Solution (Python):
n = str(input())
seven = "7"
if seven in n:
    print("Yes")
else:
    print("No")

Solution (Python):
N=int(input())

N=str(N)

if N[0]=="7" or N[1]=="7" or N[2]=="7":
  print("Yes")

else:
  print("No")

Solution (Python):
N = input()
flag = False
for i in range(len(N)):
  if(N[i] == "7"):
    flag = True
if flag: 
    print("Yes")
else: 
    print("No")

Solution (Python):
n = map(int, input())
x = list(n)
print("Yes" if 7 in x else "No")

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

Solution (Python):
N = input()
if '7' in N:
  print('Yes')
else:
  print('No')

Solution (Python):
n = input()
n_list = []
for i in n:
    n_list.append(i)

print("Yes") if n_list[0] == "7" or n_list[1] == "7" or n_list[2] == "7" else print("No")

Solution (Python):
n = int(input())
num1 = n//100
num2 = n//10
num2_last = num2%10
num3 = n%10
if num1 == 7:
    print("Yes")
elif num2_last ==7:
    print("Yes")
elif num3 ==7:
    print("Yes")
else:
    print("No")

Solution (Python):
a = int(input())

b = [int(x) for x in list(str(a))]

ans =0
for i in range(len(b)):
  if b[i] == 7:
    ans = 1
if ans == 0:
  print("No")
else:
  print("Yes")

Solution (Python):
s=input()
if s[0]=="7" or s[1]=="7" or s[2]=="7":print('Yes')
else:print("No")

Solution (Python):
import sys
n = int(input())
for i in range(3):
    if n%10 == 7:
        print('Yes')
        sys.exit()
    else:
        n = n // 10
print('No')

Solution (Python):
N=str(input())

if N[0]=='7' or N[1]=='7' or N[2]=='7':
    print('Yes')
else:
    print('No')

Solution (Python):
N=int(input())

a=N // 100
b=(N-a*100) // 10
c=N-a*100-b*10

if a==7 or b==7 or c==7:
  ans="Yes"
else:
  ans="No"
  
  
print(ans)

Solution (Python):
li=list(str(input()))
if '7' in li:
    print('Yes')
else:
    print('No')

Solution (Python):
n = str(input())

if '7' in n:
  print('Yes')
else:
  print('No')

Solution (Python):
N = input()
if '7' in N:
    print('Yes')
else:
    print('No')

Solution (Python):
n=input()
if n[0]=='7' or n[1]=='7' or n[2]=='7':
	print('Yes')
else:
	print('No')

Solution (Python):
a = input()
x = int(a)//100
y = (int(a)-x*100)//10
z = int(a) - y*10 - x*100
if x == 7 or y == 7 or z == 7:
    print('Yes')
else:
    print('No')

Solution (Python):
n = str(input())
i = "7"

if i in n:
    print("Yes")
else:
    print("No")

Solution (Python):
k = list(str(input()))
re = False
for i in k:
  if i == '7':
    re = True
    
if re:
  print('Yes')
else:
  print('No')

Solution (Python):
N = int(input())

def digit(i):
    if i > 0:
        return digit(i//10) + [i%10]
    else:
        return []
ali = digit(N)
a = 0
for i in ali:
    if int(i) == 7:
        a += 1
if a > 0:
    print("Yes")
else:
    print("No")

Solution (Python):



n = str(input())

for i in range(3):
    if n[i] == str(7):
        print('Yes')
        break
    else:
        if i == 2:
            print('No')
        else:
            continue

Solution (Python):
n = input()
c = False
for v in n:
    if v == '7':
        c = True
        break
if c:print("Yes")
else:print("No")

Solution (Python):
a = input()
if '7' in a:
  print("Yes")
else:
  print("No")

Solution (Python):
n = input()
if n[0] == "7" or n[1] == "7" or n[2] == "7":
  print("Yes")
else:
  print("No")

Solution (Python):

ipt = int(input())
if(ipt % 10 == 7):
    print("Yes")
elif((ipt // 10) % 10 == 7):
    print("Yes")
elif(((ipt // 10) // 10) % 10 == 7):
    print("Yes")
else:
    print("No")

Solution (Python):
if "7"in str(input()):
    print("Yes")
else:
    print("No")

Solution (Python):
n = int(input())

for i in range(3):
	if "7" in str(n):
		print("Yes")
		break
	else:
		print("No")
		break

Solution (Python):
def main():
    N = input()
    if '7' in N:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Solution (Python):
N = int(input())
N_str = str(N)
flag = 0
 
for i in range(0,3):
  if(N_str[i]=='7'):
    flag=1
    
if(flag==1):
  print("Yes")
else:
  print("No")

Solution (Python):
N = input()
if "7" in N:
    print("Yes")
else:
    print("No")

Solution (Python):
n=int(input())
n= [int(x) for x in list(str(n))]
 
 
if (7 in n):
    print("Yes")
 
else:
    print("No")

Solution (Python):
N=(input())
x=N.count("7")
if x>0:
    print("Yes")
else:
    print("No")

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(N: int):
    N = str(N)
    if "7" in N:
        print(YES)
    else:
        print(NO)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  
    solve(N)

if __name__ == '__main__':
    main()

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(N: int):
    n = str(N)
    if "7" in n:
        print(YES)
    else:
        print(NO)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  
    solve(N)

if __name__ == '__main__':
    main()

Solution (Python):
N = input()
N0 = int(N[0])
N1 = int(N[1])
N2 = int(N[2])

if N0 == 7:
    print("Yes")
elif N1 == 7:
    print("Yes")
elif N2 == 7:
    print("Yes")
else:
    print("No")

Solution (Python):
n=int(input())

if n//100==7:
  print("Yes")
  exit()
if (n%100)//10==7:
  print("Yes")
  exit()
if n%10==7:
  print("Yes")
  exit()
print("No")

Solution (Python):
N=str(input())
for i in range(len(N)):
    if int(N[i])==7:
        print('Yes')
        break
else:
    print('No')

Solution (Python):
s=input()

if (str(7) in str(s)):
	print('Yes')
else:
	print('No')

Solution (Python):


def solve():
    N = int(input())
    while N!=0:
        d0 = N%10
        if d0 == 7:
            print("Yes")
            return
        N //= 10
    print("No")
    return

if __name__ == "__main__":
    solve()

Solution (Python):
N = input()
if N[0] == "7" or N[1] == "7" or N[2] == "7":
    print("Yes")
else:
    print("No")

Solution (Python):
N = input()

if '7' in N:
  print('Yes')
else:
  print('No')

Solution (Python):
n = int(input())
n = str(n)
n.split()
a= 0
for i in n:
    if i=='7':
        print('Yes')
        a =1
        break
if a==0:
    print('No')

Solution (Python):
print('Yes' if '7' in input() else 'No')

Solution (Python):
N=str(input())

if "7" in N:
    print("Yes")

else:
    print("No")

Solution (Python):
N=input()
S=[N[0],N[1],N[2]]
if "7" in S:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
if s[0] == "7" or s[1] == "7" or s[2] == "7":
  print("Yes")
else:
  print("No")

Solution (Python):
x = input()

if x[0]=='7' or x[1]=='7' or x[2]=='7':
    print('Yes')
else:
    print('No')

Solution (Python):
N = input()
ans = 'No'
for i in range(3):
  if(N[i] == '7'):
    ans = 'Yes'
print(ans)

Solution (Python):
N = int(input())
N = str(N)
for i in range(len(N)):
    if N[i] == "7":
        print("Yes")
        break
else:
    print("No")

Solution (Python):
n = str(input())

if n[0] =='7' or n[1] =='7' or n[2] =='7':
  print('Yes')
else:
  print('No')

Solution (Python):
line = input()
if "7" in line:
  print("Yes")
else:
  print("No")

Solution (Python):
N = int(input())

a = N // 100
b = (N - 100*a) // 10
c = N % 10

if (a==7) or (b==7) or (c==7):
  print('Yes')
else:
  print('No')

Solution (Python):
n=int(input())
a=list(str(n))
if a[0]=='7'or a[1]=='7'or a[2]=='7':
    print('Yes')
else:
    print('No')

Solution (Python):
N = input()
A="No"
for i in range(len(N)):
    if N[i]=="7":
        A = "Yes"
        break
        
    
 
print(A)

Solution (Python):
import math
import sys

stdin = sys.stdin

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))
mod = 10**9 + 7 
sys.setrecursionlimit(1000010)

S = ns()
if S[0] == "7":
    print('Yes')
    exit(0)
if S[1] == "7":
    print('Yes')
    exit(0)
if S[2] == "7":
    print('Yes')
    exit(0)
print('No')

Solution (Python):
n = list(input())
ans = "No"
for i in n:
    if i=="7":
        ans = "Yes"
print(ans)

Solution (Python):
import sys
N = str(input())

if '7' in N:
  print('Yes')
  sys.exit()

print('No')

Solution (Python):
N = input()
flag = False
if N[0] == "7":
  flag = True
elif N[1] == "7":
  flag = True
elif N[2] == "7":
  flag = True
if flag == True:
  print("Yes")
else:
  print("No")

Solution (Python):
N = input()
if N[-1] == str(7):
    print('Yes')
elif N[-2] == str(7):
    print('Yes')
elif N[-3] == str(7):
    print('Yes')    
else:
    print('No')

Solution (Python):
S = int(input())
N = str(S)
M = len(N)
a = 0
for i in range(M):
    if N[i] == str(7):
        a = a + 1
    else:
        a = a + 0

if a >= 1:
    print("Yes")
else:
    print("No")

Solution (Python):
a=list(input())
for i in a:
    if i=='7':
        print("Yes")
        exit()
print("No")

Solution (Python):
N = input()
ans = "No"

for i in N:
    if i == "7":
        ans = "Yes"
        break
    else:
        continue
        
print(ans)

Solution (Python):
from sys import stdin


def get_result(data):
    N = data[0]
    if '7' in list(str(N)):
        return 'Yes'
    return 'No'


if __name__ == '__main__':
    data = list(map(int, stdin.readline().rstrip().split(' ')))
    result = get_result(data)
    print(result)

Solution (Python):
N = input()
if N[0] == '7' or N[1] == '7' or N[2] == '7':
    print("Yes")
else:
    print("No")

Solution (Python):


N = input()
l = [int(x) for x in list(N)]

if 7 in l:
    print("Yes")
else:
    print("No")

Solution (Python):
n = input()
if "7" in n:
  print("Yes")
else:
  print("No")

Solution (Python):
s=input().split()
st=str(s)
if  "7" in st:
    print("Yes")
else:
    print("No")

Solution (Python):
s = int(input())
print('Yes') if '7' in str(s) else print('No')

Solution (Python):
n=int(input())
map(int , str(n))
li=list(str(n))
c=0
for i in range(0,len(li)):
    if li[i]=='7':
        c+=1
    else:
        continue
        
if(c>=1):
    print("Yes")
else:
    print("No")

Solution (Python):
N=input()
for k in range(3):
    if N[k]=="7":
        print("Yes")
        break
else:
    print("No")

Solution (Python):
a=int(input())  
if (a - 7)% 10 ==0 or (a//10 - 7) % 10==0 or (a//100 % 7)==0:
    print("Yes")
else:
    print("No")

Solution (Python):
n = int(input())
print("Yes") if '7' in str(n) and len(str(n)) == 3 else print("No")

Solution (Python):
N=int(input())
if 100<=N<=999:
    N=str(N)
    if "7" in N:
        print("Yes")
    else:
        print("No")

Solution (Python):
n = input()
if "7" in n:
    print("Yes")
else:
    print("No")

Solution (Python):
a=input()
if "7" in a:
  print("Yes")
  
else :
  print("No")

Solution (Python):
a, b, c = input()
a=int(a)
b=int(b)
c=int(c)


if a == 7:
    print('Yes')
else:
    if b == 7:
        print('Yes')
    else:
        if c == 7:
            print('Yes')
        else:
            print('No')

Solution (Python):
N = str(input())
if N[-1] == '7' or N[-2] == '7' or N[-3] == '7':
  print('Yes')
else:
  print('No')

Solution (Python):
line = input()
if "7" in line:
  print("Yes")
else:
  print("No")

Solution (Python):
n = int(input())
a = []
while n > 0:
    a.append(n % 10)
    n //= 10
if 7 in a:
    print("Yes")
else:
    print("No")

Solution (Python):
a = str(input())

if "7" in a:
	print("Yes")
else:
	print("No")

Solution (Python):
n=input()

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

Solution (Python):
t=False
for i in input():
    if i=='7':
        t=True
        break
print('Yes' if t==True else 'No')

Solution (Python):
a=str(input())
if '7' in a:
    print("Yes")
else:
    print("No")

Solution (Python):
a=list(input())
x=0
for i in a:
    if i=="7":
        x=1
        print("Yes")
        break
if x==0:
    print("No")

Solution (Python):
N = list(input())

for i in N:
  if i == '7':
    print('Yes')
    break
else: 
  print('No')

Solution (Python):
n = input()
if '7' in n:
    print('Yes')
else:
    print('No')

Solution (Python):
N = int(input())
a = N // 100
b = (N - 100 * a) // 10
c = (N - 100 * a - b * 10 )
if a == 7 :
    print('Yes')
elif b == 7 :
    print('Yes')
elif c == 7 :
    print('Yes')
else :
    print('No')

Solution (Python):
N= int(input())

a = str(N)
if(a[0] == '7'):
  print('Yes')
elif(a[1] == '7'):
  print('Yes')
elif(a[2] == '7'):
  print('Yes')
else:
  print('No')

Solution (Python):
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools,fractions,pprint
sys.setrecursionlimit(10**8)
mod = 10**9+7
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))

n = input()
res = False
for i in n:
    if i == '7':
        res = True
print('Yes' if res else 'No')

Solution (Python):
def main():
    N = input()
    strBool = "No"
    for num in N:
        if int(num) == 7:
            strBool = "Yes"

    print(strBool)


if __name__ == '__main__':
    main()

Solution (Python):
n = list(input())

if "7" in n:
    print("Yes")
else:
    print("No")

Solution (Python):
k = str(int(input()))

if k[0] == "7":
    print("Yes")
elif k[1] == "7":
    print("Yes")
elif k[2] == "7":
    print("Yes")
else:
    print("No")

Solution (Python):
N = int(input())

if str(N)[-1] == "7" or str(N)[-2] == "7" or str(N)[-3] == "7":
    print("Yes")
else:
    print("No")

Solution (Python):
n = input()
ans = 'No'
for i in range(3):
    if n[i] == '7':
       ans = 'Yes'
print(ans)

Solution (Python):
a = input()

count = False
for i in range(len(a)):
    if a[i] == "7":
        count = True
        break

if count:
    print("Yes")
else:
    print("No")

Solution (Python):
N = int(input())
f = 0
a = N//100
b = (N-a*100)//10
c = N-a*100-b*10
if a == 7 or b == 7 or c == 7:
    f = 1
if f == 1:
    print('Yes')
else:
    print('No')

Solution (Python):
N = str(input())

if N[0] == "7" or N[1] == "7" or N[2] == "7":
    print("Yes")
else:
    print("No")

Solution (Python):
N=str(input())
if N[0]=="7":
  print("Yes")
elif N[1]=="7":
  print("Yes")
elif N[2]=="7":
  print("Yes")
else:
  print("No")

Solution (Python):
n = input()
for i in range(len(n)):
    if n[i] == "7":
        print("Yes")
        break
else:
    print("No")

Solution (Python):
def main():
  s = input()
  r = '7' in s
  if r:
    print('Yes')
  else:
    print('No')

if __name__ == '__main__':
  main()

Solution (Python):
n=list(input())

if '7' in n:
    print('Yes')
else:
    print('No')

Solution (Python):
a = str(input())

if "7" in a:
  print("Yes")
else:
  print("No")

Solution (Python):
N = int(input())
lst = []
while N > 0:
    lst.append(N%10)
    N //= 10 
lst.reverse()
if 7 in lst:
    print("Yes")
else:
    print("No")

Solution (Python):
A = input()
Alist = list(A)
j=0
for i in range(3):
    if Alist[i] == '7':
        j+=1
if j>=1:
    print('Yes')
else:
    print('No')

Solution (Python):
a = input()
num = 0
for i in range(3):
  if a[i] == "7":
    num += 1
  else:
    num += 0

if num > 0:
  print("Yes")
else:
  print("No")

Solution (Python):

n=input()

flg='7' in n
if flg:
	print("Yes")
else:
	print("No")

Solution (Python):
S=input()
for i in range(len(S)):
    if S[i]=="7":
        print("Yes")
        exit()
print("No")

Solution (Python):
n = input()
if '7' in n:
  print('Yes')
else:
  print('No')

Solution (Python):
inp = input()
if inp.count('7') != 0:
  print('Yes')
else:
  print('No')

Solution (Python):
n = str(input())
if n[0]=='7' or n[1]=='7' or n[2]=='7':
    print('Yes')
else:
    print('No')

Solution (Python):
a=input()
for i in range(3):
    if a[i]=="7":
        print("Yes")
        quit()
print("No")

Solution (Python):
N = input()
if '7' in N:
    print('Yes')
else:
    print('No')

Solution (Python):
n = str(input())

index = n.find('7')
if (index != -1):
  print('Yes')
else:
  print('No')

Solution (Python):
a=input()
if (a[0]=="7")or(a[1]=="7")or(a[2]=="7"):
    print("Yes")
else:
    print("No")

Solution (Python):
n = input()
iii = False
for i in n:
  if i =='7':
     iii = True
if iii:
  print('Yes')
else:
  print('No')

Solution (Python):
N = int(input())

a = N // 100
b = (N - a * 100) // 10
c = (N - (a * 100 + b * 10) )

if a == 7 or b == 7 or c == 7:
    print('Yes')
else:
    print('No')

Solution (Python):
n = input()
if '7' in n:
    print('Yes')
else:
    print('No')

Solution (Python):
N = input()

if N[0] == "7":
    print("Yes")
elif N[1] == "7":
    print("Yes")
elif N[2] == "7":
    print("Yes")
else:
    print("No")

Solution (Python):
N = input()

count = N.count('7')
if count >= 1:
  print('Yes')
else:
  print('No')

Solution (Python):
n = input()
print('Yes' if '7' in n else 'No')

Solution (Python):
A = int(input())
flag = False
if A%10==7:
  flag = True
elif (A//10)%10==7:
  flag = True
elif (A//100)%10==7:
  flag = True
  
if flag:
  print("Yes")
else:
  print("No")

Solution (Python):
n = int(input())
while (n):
    if n%10==7:
        break
    n//=10
if n:
    print("Yes")
else:
    print("No")

Solution (Python):
a = str(input())
b = a.count('7')
if b >= 1:
    print('Yes')
else:
    print('No')

Solution (Python):
N=input()

if ('7' in N):
    print('Yes')
else:
    print('No')

Solution (Python):
a = list(input())
if '7' in a:
  print('Yes')
else:
  print('No')

Solution (Python):
N = int(input())
h = N // 100
t = (N - 100*h) // 10
o = N - 100*h - 10*t
if h == 7:
    print('Yes')
elif t == 7:
    print('Yes')
elif o == 7:
    print('Yes')
else:
    print('No')

Solution (Python):
b = int(input())
if "7" in str(b):
    print("Yes")
else:
    print("No")

Solution (Python):
N = input()

cnt = N.count('7')

if cnt:
    print("Yes")
else:
    print("No")

Solution (Python):
x = input()
x = str(x)

if x.count('7'):
    print('Yes')
else:
    print('No')

Solution (Python):
print("Yes" if '7' in input() else "No")

Solution (Python):
n = input()
if '7' in n:
  print('Yes')
else:
  print('No')

Solution (Python):
N = input()
word = "7"
if word in N:
    print("Yes")
else:
    print("No")

Solution (Python):

k = input()
k = str(k)

ans = 'No'



if int(k[-1]) == 7 :
    ans = 'Yes'



if int(k[-2]) == 7 :
    ans = 'Yes'



if int(k[-3]) == 7 :
    ans = 'Yes'


print(ans)

Solution (Python):
n = int (input())
p = int(n/100)
l = n%100
k = int(l/10)
h = l%10
if(p == 7 or l == 7 or k==7 or h==7):
    print("Yes")
else:
    print("No")

Solution (Python):
s=list(input())
if "7" in s:
  print("Yes")
else:
  print("No")

Solution (Python):
N = int(input())
s = str(N)
check = 0

for i in range (0,len(s)):
    if int(s[i])==7:
        check = 1
if check==1:
    print("Yes")
elif check==0:
    print("No")

Solution (Python):
s = str(input())

n = len(s)
cnt = 0
for i in range(n):
    if s[i] == '7':
        cnt = 1
        break

if cnt == 1:
    print("Yes")
else:
    print("No")

Solution (Python):
n=int(input())
if n%10==7:
    print('Yes')
elif 70<=n%100 and n%100<=79:
    print('Yes')
elif 700<=n and n<=799:
    print('Yes')
else:
    print('No')

Solution (Python):

n=list(input())

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

Solution (Python):
n = input()

if "7" in n:
  print("Yes")
else:
  print("No")

Solution (Python):

n = input()
if n[0] == '7':
    print('Yes')
elif n[1]=='7':
    print('Yes') 
elif n[2]=='7':
    print('Yes')
else:
    print('No')

Solution (Python):
s=str(input())

if s[0]=="7" or s[1]=="7" or s[2]=="7":
  print("Yes")
else:
  print("No")

Solution (Python):

N = int(input())
M = str(N)
List = []
for i in M:
    if i == '7':
        List.append(i)
    else:
        pass
if len(List) != 0:
    print('Yes')
else:
    print('No')

Solution (Python):
n=input()
if n[0]=="7" or n[1]=="7" or n[2]=="7":
	print("Yes")
else:
	print("No")

Solution (Python):



N = input()


result = False
for n in N:
    if int(n) == 7:
        result = True


if result:
    print("Yes")
else:
    print("No")

Solution (Python):
s=input()
flag = 0
for i in range(len(s)):
	if s[i]=='7':
		flag=1
 
if flag==1:
	print('Yes')
else:
	print('No')

Solution (Python):
s = input()

if '7' in s:
  print("Yes")
else:
  print("No")

Solution (Python):
N = int(input())

if (int(N / 100) == 7) or int((N % 100) / 10) == 7 or (N % 10 == 7):
    print("Yes")
else:
    print("No")

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(N: int):
    if str(N)[0] == "7" or str(N)[1] == "7" or str(N)[2] == "7":
        print(YES)
    else:
        print(NO)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  
    solve(N)

if __name__ == '__main__':
    main()

Solution (Python):

N = int(input())
flag = 0
if N%10 ==7:
    flag = 1
n=N//10
if n%10 ==7:
    flag =1
if N//100 ==7:
    flag = 1
if flag ==1:
    print("Yes")
else:
    print("No")

Solution (Python):
def read():
    N = input()
    return N, 

def solve(N):
    return 'Yes' if '7' in N else 'No'

if __name__ == '__main__':
    inputs = read()
    print("{}".format(solve(*inputs)))

Solution (Python):
N = list(map(int,list(input())))
if N[0]==7 or N[1]==7 or N[2]==7:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()

if '7' in s:
    print('Yes')
else:
    print('No')

Solution (Python):
x=input()
if '7' in x:
	print('Yes')
else:
	print('No')

Solution (Python):
import sys

N =  str(input())

if '7'in N:
    print("Yes")
else:
    print("No")

Solution (Python):
a = int(input())
b = a//100
c = a%100 //10
d = a%10

if b == 7:
    print('Yes')
elif c == 7:
    print('Yes')
elif d == 7:
    print('Yes')
else:
    print('No')

Solution (Python):
n = list(input())
if "7" in n:
    print("Yes")
else:
    print("No")

Solution (Python):
a = list(input())
b = 'No'
if '7' in a:
    b = 'Yes'
print(b)

Solution (Python):
a = list(input())

if "7" in a:
  print("Yes")
else:
  print("No")

Solution (Python):
N = input()
if N[0] == "7":
    print("Yes")
else:
    if N[1] == "7":
        print("Yes")
    else:
        if N[2] == "7":
            print("Yes")
        else:
            print("No")

Solution (Python):
N = input()

if ('7'in N):
    print('Yes')
else:
    print('No')

Solution (Python):
n = int(input())
s = str(n)
num = list(map(int,s))

for i in num:
  if i == 7:
    print("Yes")
    exit()
print("No")

Solution (Python):
N = list(input())
print("Yes" if "7" in N else "No")

Solution (Python):
n = input()
for i in n:
    if i == "7":
        print("Yes")
        exit()

print("No")

Solution (Python):
N = input()
print('Yes') if N.count('7') else print('No')

Solution (Python):
a=input()
if "7" in a:
  print("Yes",end="")
else:
  print("No",end="")

Solution (Python):
n = input()
ans = False
for i in n:
    if i == '7':
        ans = True
if ans:
    print("Yes")
else:
    print("No")

Solution (Python):
N = int(input())

ans = '7' in str(N)

if ans:
    print("Yes")
else:
    print("No")

Solution (Python):
n = input()
for x in n:
    if x == "7":
        print("Yes")
        exit()
print("No")

Solution (Python):
num = input()
print('Yes' if '7' in num else 'No')

Solution (Python):


def main():
    N = list(map(str, open(0).read().split()))
    flag = N[0].find('7')
    if flag >= 0:
        print('Yes')
    else:
        print('No')

main()

Solution (Python):
a = int(input())
def check_seven(a):
    for i in range(3):
        if a % 10 == 7:
            print("Yes")
            return
        a //= 10
    print("No")
    return
check_seven(a)

Solution (Python):
N = [1 for x in input() if int(x) == 7]
result = 'Yes' if N else 'No'
print(result)

Solution (Python):
N = input()
n = list(N)
if n[0] == '7' or n[1] == '7' or n[2] == '7':
    print('Yes')
else:
    print('No')

Solution (Python):
N = input()
 
if '7'in N:
  print('Yes')
else:
  print('No')

Solution (Python):
N = str(input())

flag = False
for i in range(len(N)):
    if N[i] == '7':
        flag = True
        break

if flag:
    print('Yes')
else:
    print('No')

Solution (Python):
import re

N=str(input())

t=N.count("7")

if t>=1:
    print("Yes")
else:
    print("No")

Solution (Python):
a=input()
print("Yes" if "7" in a else "No")

Solution (Python):
n = int(input())
 
n = [int(i) for i in str(n)]
 
if 7 in n:
    print('Yes')
else:
    print('No')

Solution (Python):
N = str(input())
if N[0] == "7":
    print("Yes")
elif N[1] == "7":
    print ("Yes")
elif N[2] == "7":
    print ("Yes")
else:
    print ("No")

Solution (Python):
N = []
N = list(input())
a = 0

for i in range(len(N)):
    if (N[i] == "7"):
        a = 1

if (a == 0):
    print("No")
else:
    print("Yes")

Solution (Python):
a = input()
f=0
for i in a:
    if(i=='7'):
        f = 1
        break
if(f==0):print("No")
else:print("Yes")

Solution (Python):
s = input()
f = False
for i in s:
    if i == '7':
        f = True
        break

if f:
    print('Yes')
else:
    print('No')

Solution (Python):
N = list(input())

if N[0] == "7" or N[1] == "7" or N[2] == "7":
    print("Yes")
else:
    print("No")

Solution (Python):
N=int(input())
N=str(N)
judge=0
for i in N:
    if(i=="7"):
        judge=1
    else:
        pass
if(judge==1):
    print("Yes")
else:
    print("No")

Solution (Python):
m = list(input())

if "7" in m:
    print("Yes")
else:
    print("No")

Solution (Python):
N=input()
l=False
for e in N:
    if e=="7":
        l=True

if l==True:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
if '7' in s:
	print("Yes")
else:
	print("No")

Solution (Python):
s = map(int, list(input()))

if 7 in s:
  print('Yes')
else:
  print('No')

Solution (Python):
if '7' in list(input()):
  print('Yes')
else:
  print('No')

Solution (Python):
N = input()
if '7' in list(N):
    print("Yes")
else:
    print("No")

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

Solution (Python):
S = input()

if (S[0]=="7") or (S[1]=="7") or (S[2]=="7"):
  print("Yes")
else:
  print("No")

Solution (Python):
ipt = str(input().split())
if("7" in ipt):
    print("Yes")
else:
    print("No")

Solution (Python):
N = input()
if str(7) in list(N):
    print('Yes')
else:
    print('No')

Solution (Python):
n = input()
if n[0] == "7" or n[1] == "7" or n[2] == "7":
  print("Yes")
else:
  print("No")

Solution (Python):
N = input()

bool_7 = False

for i in N:
    if (int(i)== 7):
        bool_7 = True
        break

if bool_7:
    print('Yes')
else:
    print('No')

Solution (Python):
print('Yes' if '7' in input() else 'No')

Solution (Python):
n = input()
seven = False
for i in range(3):
    if n[i] == '7':
        seven = True
        break
if seven:
    print('Yes')
else:
    print('No')

Solution (Python):
s = list(input())
for i in s:
  if i == "7":
    print("Yes")
    exit()
print("No")

Solution (Python):
n=input()
if (n.count('7')) >= 1:
  print('Yes')
else:
  print('No')

Solution (Python):
N = input()

if "7" in N:
    print("Yes")
else:
    print("No")

Solution (Python):
s=input()
n=s.count("7")
print("Yes" if n>=1 else "No")

Solution (Python):
import sys
stdin = sys.stdin
     
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))

N=int(input())
flag=False
for i in range(3):
    if(int(N//(10**i))%10==7):
        flag=True

print('Yes' if flag==True else 'No')

Solution (Python):
n = list(map(int,input()))
print('Yes' if n.count(7) >= 1 else 'No')

Solution (Python):
n = input()
if '7' in n: 
  print("Yes")
else: 
  print("No")

Solution (Python):
inp=int(input())
lt=list(str(inp))
if '7' in lt:
  print("Yes")
else:
  print("No")

Solution (Python):
N = input()
if '7' in list(N):
    print("Yes")
else:
    print("No")

Solution (Python):
N = input()

if '7' in list(N):
    print('Yes')
else:
    print('No')

Solution (Python):




import sys
input = sys.stdin.readline



def main():
    N = input().rstrip()

    if (N[0] == '7') | (N[1] == '7') | (N[2] == '7'):
        print('Yes')
    else:
        print('No')



main()

Solution (Python):
n = input()
print("Yes" if "7" in n else "No")