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):

def number(m):

    while (m>0):
        n = m%10
        m = m//10

        if n==7:
            return "Yes"         
    return "No"
n = int(input())
print(number(n))

Solution (Python):

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

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

Solution (Python):
N = list(input())
check = 0
for n in N:
    if n == '7':
        check = 1
 
if check == 1:
    print('Yes')
else:
    print('No')

Solution (Python):
n = list(input())
if "7" in n:
    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 = int(input())

def lucky_seven(N):
  if "7" in str(N):
    return "Yes"
  else:
    return "No"
  
print(lucky_seven(a))

Solution (Python):
n=input()

for i in n:
    if i=="7":
        print("Yes")
        exit(0)
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()
k = a.count("7")
if k !=0:
  print('Yes')
else:
  print('No')

Solution (Python):
ls = list(str(input()))

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

Solution (Python):
n = (input())
for i in range(len(n)):
         if n[i] == "7":
                  print("Yes")
                  exit()
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 = input()
if "7" in str(N):
    print("Yes")
else:
    print("No")

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

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

Solution (Python):




def main():
    n = input().strip()
    if '7' in n:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

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

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

Solution (Python):
N = input()
flag = 0
for item in N:
    if item == '7':
        flag = 1
        break;

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

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

num = 0

for i in N:
    if i == '7':
        num += 1
    else:
        pass

if num == 0:
    print('No')
else:
    print('Yes')

Solution (Python):
"""
int(input())
map(int,input().split())
list(map(int,input().split()))

"""
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()
n_list = list(n)

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

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

for i in range(len(N)):
    if(N[i] == '7'):
        ans = 1
        break
    else:
        pass
if(ans == 1):
    print('Yes')
else:
    print('No')

Solution (Python):
n = input()

l = False

for k in range(3):
    if n[k] == "7":
        l = True

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

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

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

Solution (Python):
n = input()

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

Solution (Python):


s = input()
f = False
for i in s:
    if i == '7':
        f =True
        
if f == True:
    print("Yes")
else:
    print("No")

Solution (Python):
a = int(input())
a=str(a)
num=a.count('7')
if num>0:
  print("Yes")
else:
  print("No")

Solution (Python):
N = list(input())
print("Yes" if "7" in N 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):
s = input()
if s.find("7") != -1:
    print ("Yes")
else:
    print ("No")

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

Solution (Python):
n = input()
n1 = int(n[0])
n10 = int(n[1])
n100 = int(n[2])
if n1 != 7 and n10 != 7 and n100 != 7:
    print("No")
else:
    print("Yes")

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

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

if str(7)in [str(N)[0],str(N)[1],str(N)[2]]:
    print('Yes')
else:
    print('No')

Solution (Python):



def run():
    if '7' in input():
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    run()

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

Solution (Python):
n = int(input())
n1 = str(n)
if n1[0] == str(7) or n1[1] == str(7) or n1[2] == str(7):
  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 = str(input())

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

Solution (Python):
n=int(input())
a=(n//100)
b=(n%100)//10
c=(n%100)%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):
import sys
N = sys.stdin.readline()
flag = False
for i in N:
  if i == "7":
    flag = True
    break
if flag:
  print("Yes")
else:
  print("No")

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

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

if n.count('7') != 0:
  print('Yes')
else:
  print('No')

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

Solution (Python):
N = input()

res = False
for i in N:
    if i == '7':
        res = True

if res == True:
    print('Yes')
else:
    print('No')

Solution (Python):
N = []
N = input()


for i in range(3):
    if N[i] in "7":
        print("Yes")
        exit()
    
print("No")

Solution (Python):
N = int(input())
l =[int(x) for x in list(str(N))]
if l[0] == 7 or l[1] == 7 or l[2] == 7:
    print('Yes')
else:
    print('No')

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

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

Solution (Python):
N = int(input())
has = False
for n in str(N):
	if n == "7":
		has = True
		break
	
if has:
	print("Yes")
else:
	print("No")

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

Solution (Python):
N = input().strip()

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

Solution (Python):
num = int(input())
lst = []
count = 0
while num > 0:
  if num % 10 == 7:
    count += 1
  num //= 10 
if count == 0:
  print("No")
else:
  print("Yes")

Solution (Python):
def main():
  x = int(input())
  
  a = x // 100
  b = (x // 10) % 10
  c = x % 10
  
  if a == 7 or b ==7 or c == 7:
    print('Yes')
  else:
    print('No')
main()

Solution (Python):
def resolve():
    A = int(input())
    a = [int(x) for x in list(str(A))]
    if a[0]==7 or a[1]==7 or a[2]==7:
        print("Yes")
    else:
        print("No")
resolve()

Solution (Python):
s=input()
count=0
for i in s:
  if i=="7":
    print("Yes")
    count+=1
    break
  else:
    pass
if count==0:
  print("No")

Solution (Python):
N = input()

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

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

n = list(n)

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

Solution (Python):
import sys

inputLine = input()
N=inputLine

for i in range(len(N)):
    if N[i] == "7":
        print("Yes")
        sys.exit()

print("No")

Solution (Python):
N = input()
flag = 0
for i in N:
  if i == "7":
    print("Yes")
    flag = 1
    break
if flag == 0:
  print("No")

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

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

Solution (Python):
n = str(input())
print('Yes' if '7' in n 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()

answer = 'Yes' if '7' in N else 'No'

print(answer)

Solution (Python):
S=input()
if S[0]!='7'and S[1]!='7' and S[2]!='7':
  print('No')
else:
  print('Yes')

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

Solution (Python):
n_as_list = list(input())
result = "No"

for n in n_as_list:
    if n == "7":
        result = "Yes"

print(result)

Solution (Python):
N = input()

def check(N):
    for a in N:
        if a == '7':
            return 'Yes'
            
    return 'No'

print(check(N))

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

if N0 == 7 or N1 == 7 or N2 == 7:
  ans = 'Yes'
print(ans)

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

Solution (Python):
a = int(input())
out =[int(x) for x in str(a)]
ans = out.count(7)
if ans != 0:
    print('Yes')
else:
    print('No')

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

Solution (Python):
N = input()

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

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

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

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

c=0
for i in a:
    if i == '7':
        c += 1

if c ==0:
    print('No')
else:
    print('Yes')

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

Solution (Python):
import sys
input = sys.stdin.readline
def main():
    N = input().rstrip("\r\n")
    ans = "No"
    for s in N:
        if s == "7":
            ans = "Yes"
            break
    print(ans)
if __name__ == "__main__":
    main()

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

if n.__contains__('7'):
    print('Yes')
else:
    print('No')

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

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

Solution (Python):

import sys
 
YES = "Yes"  
NO = "No"  
 
 
def solve(N: int):
    print(YES if '7' in str(N) else 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()

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

else:
    print('No')

Solution (Python):
li = list(input())	
if li.count('7') > 0:
  print('Yes')
else:
  print('No')

Solution (Python):
N1,N2,N3 = input()
if N1 == '7' or N2 == '7' or N3 == '7':
  print('Yes')
else:
  print('No')

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

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

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

Solution (Python):
N = input()

result = 'No'

for i in range(len(N)):
    if N[i] == '7':
        result = 'Yes'

print(result)

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

Solution (Python):
s=(input())
a = [int(c) for c in s]
if a[0]==7 or a[1]==7 or a[2]==7:
    print('Yes')
else:
    print('No')

Solution (Python):
def qqq(n):

    a = int(n/100)
    if a == 7: 
        return "Yes" 
    
    n %= 100
    b = int(n/10)
    if b == 7:
        return "Yes"
    
    n %= 10
    if n == 7:
        return "Yes"

    return "No"

if __name__ == '__main__':
    N = int(raw_input())
    print qqq(N)

Solution (Python):
inp = input()
if inp.__contains__('7'):
    print("Yes")
else:
    print("No")

Solution (Python):
n = int(input())
n_list = list(str(n))
ans = 0
for i in range(3):
    if int(n_list[i]) == 7:
        ans += 1
if ans > 0:
    print("Yes")
else:
    print("No")

Solution (Python):
import sys

N = int(input())

if N // 100 == 7:
    print("Yes")
    sys.exit()
N = N % 100


if N // 10 == 7:
    print("Yes")
    sys.exit()

N = N % 10
if N == 7:
    print("Yes")
    sys.exit()

print("No")

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

Solution (Python):

 
N  = input()

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

Solution (Python):
N = input()

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

    print('Yes')

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

Solution (Python):
n = int(input())
if int(n/100) == 7 or n%10 == 7 or int(n/10)%10 == 7:
    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):
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
from bisect import bisect_right, bisect_left
import random
from itertools import permutations, accumulate, combinations, product
import sys
import string
from bisect import bisect_left, bisect_right
from math import factorial, ceil, floor, gamma, log
from operator import mul
from functools import reduce
from copy import deepcopy

sys.setrecursionlimit(2147483647)
INF = 10 ** 20
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def LSR(n): return [LS() for i in range(n)]
def SRL(n): return [list(S()) for i in range(n)]
def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]
mod = 1000000007


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

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

Solution (Python):
N = input()
check = "NG"
for i in range(len(N)):
    if N[i] == "7":
        print("Yes")
        check = "OK"
        break
    else:
        continue
if check == "NG":
    print("No")

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

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

Solution (Python):
N = str(input())
if "7" in N:
    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 = int(input())
if N// 100 == 7:
    print("Yes")
elif (N%100)//10 == 7:
    print("Yes")
elif (N%10) == 7:
    print("Yes")
else:
    print("No")

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

Solution (Python):
N = str(input())
result = any([True if n == '7' else False for n in N])
if result:
    print('Yes')
else:
    print('No')

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

Solution (Python):
n = str(input())
if n.find('7') != -1:
    print('Yes')
else:
    print('No')

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

Solution (Python):
n=int(input())
s=str(n)
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=int(input())

label=0
N1=N//100
N2=(N-N1*100)//10
N3=(N-N1*100-N2*10)

if N1==7 or N2==7 or N3==7:
    print('Yes')
else:
    print('No')

Solution (Python):


N = str(input())
if (N[0] != '7') & (N[1] != '7') & (N[2] != '7'):
    print('No')
else:
    print('Yes')

Solution (Python):
if __name__ == "__main__":
    
    
    
    
    N = input()
    msg = "No"
    for n in N:
        if n == '7':
            msg = "Yes"
  
    print(msg)

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

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

Solution (Python):
a,b,c=list(str(input()))

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

Solution (Python):
N = input()
flag = False
for s in N:
  if s == '7':
    flag = True
if flag:
  print('Yes')
else:
  print('No')

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

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

Solution (Python):
N=input()

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

Solution (Python):
val= list(input())
flag=0
for i in range(0,len(val)):
    if val[i]=="7":
        flag=1
if flag == 1:
    print("Yes")
else:
    print("No")

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

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

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

print(ans)

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

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

Solution (Python):
import sys
N=input()
a = [int(c) for c in N]
count=False
for i in range(len(a)):
    if a[i]==7:
        count=True

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

Solution (Python):
ok = False
for i in input():
    if i == "7":
        ok = True

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

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

Solution (Python):
numbers = [i for i in input()]
print("Yes" if "7" in numbers else "No")

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

Solution (Python):
n=int(input())
flag=0
for i in range(3):
    if(n%10==7):
        print("Yes")
        flag=1
        break
    n=n//10
if(flag==0):
    print("No")

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

Solution (Python):
n = input()

s = ('7' in n)

if s == True:
    print('Yes')
else:
    print('No')

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

Solution (Python):
def qqq(n):

    a = int(n/100)
    if a == 7: 
        return "Yes" 
    
    n %= 100
    b = int(n/10)
    if b == 7:
        return "Yes"
    
    n %= 10
    if n == 7:
        return "Yes"

    return "No"

if __name__ == '__main__':
    N = int(raw_input())
    print qqq(N)

Solution (Python):
N = int(input())
N100 = N // 100
N10 = (N - N100 * 100) // 10
N1 = (N - (N100 * 100 + N10 * 10))

if N100 == 7 or N10 == 7 or N1 == 7:
    print('Yes')
else:
    print('No')

Solution (Python):
integerinput = input()
con = int(integerinput) >= 100 and int(integerinput) <= 999
count = 0
if con == True:
    for i in integerinput:
        if int(i) == 7:
            count = count + 1
        else:
            count = count
    if count >= 1:
        print("Yes")
    else:
        print("No")
else:
    print()

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

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

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

Solution (Python):
N = input()

for n in N:
    if n == '7':
        ans = 'Yes'
        break
    else:
        ans = 'No'

print(ans)

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

s = str(N)

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

Solution (Python):
def solve():
    n = int(input())
    return 'Yes' if '7' in str(n) else 'No'

print(solve())

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

flg = 1
for i in N:
  if i == '7':
    flg = 0
if flg == 1 :
  print('No')
else:
  print('Yes')

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

N_str = str(N)
flag = 0
for x in N_str:
    if x == '7':
        print('Yes')
        flag = 1
        break

if not flag:
    print('No')

Solution (Python):

def a162(n):

    return "Yes" if n.count("7") else "No"

def main():
    n = str(input())
    print(a162(n))

if __name__ == '__main__':
    main()

Solution (Python):
n = str(input())
i = 0
while True:
    if i==len(n):
        print('No')
        break
    elif int(n[i]) == 7:
        print('Yes')
        break
    else:
        i+=1

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

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

def res():
    for i in a:
        if i == "7":
            return "Yes"
    return "No"

print(res())

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

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

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

if N//100 == 7:
    print('Yes')
elif (N - N//100*100)//10 == 7:
    print('Yes')
elif (N - N //10*10)== 7:
    print('Yes')
else:
    print('No')

Solution (Python):
s=input()
if s.find('7') > -1:
    print("Yes")
else:
    print("No")

Solution (Python):
N = input()
flg = False

for n in N:
    if n=='7':
        flg = True
if flg:
    print('Yes')
else:
    print('No')

Solution (Python):
def resolve():
    N = input()

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

if __name__ == "__main__":
    resolve()

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

Solution (Python):
n = int(input())
n1 = str(n)
for i in range(len(n1)):
    if n1[i] == '7':
        print('Yes')
        break
    if i == len(n1)-1:
        print('No')

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

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

Solution (Python):
N = input()

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

Solution (Python):
from sys import stdin
import math
import fractions

n = stdin.readline().rstrip()

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

Solution (Python):


import sys
import math


debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        
        
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    (n, ) = [e for e in lines[0].split(' ')]

    return (n, )


def solve(n):

    result = 'No'
    if '7' in n:
        result = 'Yes'

    
    return  result
    


def main():
    
    result = solve(*parse_input())
    if isinstance(result, list):
        for r in result:
            print("%s" % r, sep='')
    else:
        print("%s" % result, sep='')

if __name__ == '__main__':

    main()

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

Solution (Python):


n = 0

def format_input(filename = None):
	global n
	if filename == None:
		n = int(input())

	elif filename == '__random__':
		from random import randint as rng
		n = rng(10**2, 10**3 - 1)
		print(n)

def get_answer():
	answer = 'No'
	digits = []
	k = n
	while k > 0:
		digits.append(k % 10)
		k //= 10
	if digits.count(7) > 0:
		answer = 'Yes'
	return answer

if __name__ == '__main__':
	format_input()

	ans = get_answer()
	print(ans)

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

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

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

Solution (Python):
n = input()

flag = False

for i in range(len(n)):
    if n[i] == "7":
        flag = True
        break

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

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

def main():
    N = input()
    c = N.count('7')
    print('Yes' if c != 0 else 'No')
    return

if __name__ == '__main__':
    main()

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

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

Solution (Python):
def ifif(s):
  if s:
    print("Yes")
  else:
    print("No")



def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def rls(): return list(map(str, input().split()))
def pl(a): print(" ".join(list(map(str, a))))
def ma():return map(int,input().split())
from itertools import accumulate as acc
import operator as op
import copy as cp
import math; import numpy
from bisect import bisect_left as bisl
from bisect import bisect_right as bisr

n=input()
s=0
if n[0]=='7':
    s=1
if n[1]=='7':
    s=1
if n[2]=='7':
    s=1
ifif(s)

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

Solution (Python):







import sys
sys.setrecursionlimit(15000)

s = sys.stdin.readline().rstrip()
if s.find("7") != -1:
    print("Yes")
    exit(0)
print("No")

Solution (Python):
from __future__ import print_function

import sys

import re
import array
import copy
import functools
import operator

import math
import string
import fractions
from fractions import Fraction
from fractions import gcd



import collections
import itertools
import bisect

import random
import time

import heapq
from heapq import heappush
from heapq import heappop
from heapq import heappushpop
from heapq import heapify
from heapq import heapreplace
from queue import PriorityQueue as pq
from queue import Queue

from itertools import accumulate

from collections import deque
from collections import Counter

from operator import mul
from functools import reduce

input = sys.stdin.readline


def eprint(*args, **kwargs):
    print(*args, file=sys.stderr, **kwargs)
    return


def lcm(n, m):
    return int(n * m / gcd(n, m))


def coprimize(p, q):
    common = fractions.gcd(p, q)
    return (p // common, q // common)


def combinations_count(n, r):
    r = min(r, n - r)
    numer = reduce(mul, range(n, n - r, -1), 1)
    denom = reduce(mul, range(1, r + 1), 1)
    return numer // denom


def find_gcd(list_l):
    x = reduce(gcd, list_l)
    return x


def main():
    S = input().strip()
    ans="No"
    for i in range(len(S)):
        if S[i]=='7':
            ans="Yes"
    print(ans)

if __name__ == '__main__':
    main()

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

Solution (Python):
n=input()
s=[int(c) for c in n]
p=0
for i in range(3):
  if s[i]==7:
    p+=1
if p==0:
  print("No")
else:
  print("Yes")

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

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

Solution (Python):
print(['Yes', 'No'][int('7' not in input())])

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()
print('Yes' if N[0] == '7' or N[1] == '7' or N[2] == '7' else 'No')

Solution (Python):
line=input()

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

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

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

Solution (Python):
N = (input())
t=False

for i in range(len(N)):
    if N[i]=="7":
        t=True

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

Solution (Python):

import sys
input = sys.stdin.readline





def main():
    n = input()
    for c in n:
        if c == "7": 
            print("Yes")
            break
    else:
        print("No")

if __name__ == '__main__':
    main()

Solution (Python):
N = list(map(int, input()))
cnt = 0
for i in N:
    if i==7:
        cnt += 1
if cnt==0:
    print('No')
else:
    print('Yes')

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

Solution (Python):
import os

def main():
    num = input()
    flag = False
    for i in num:
        if i == "7":
            flag = True
    if flag:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()

Solution (Python):
def n0():return int(input())
def n1():return [int(x) for x in input().split()]
def n2(n):return [int(input()) for _ in range(n)]
def n3(n):return [[int(x) for x in input().split()] for _ in range(n)]

n=n0()
print("Yes" if str(n).count('7')>0 else "No")

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

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

Solution (Python):
n=input()

a=n.count('7')

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

Solution (Python):
def Main(N):
    return "Yes" if "7" in N else "No"
    

def main():
    N = str(input())
    print(Main(N))

if __name__ == '__main__':
    main()

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

Solution (Python):
a, b, c = input()
count = 0
if a == "7" or b == "7" or c == "7":
    print("Yes")
else:
    print("No")

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

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

A = str(N)
check = 0

for i in range(0,3):
  if(A[i] == '7'):
    check = 1
    
if(check == 1):
  print("Yes")
else:
  print("No")