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



Sample input:
117


Sample output:
Yes

Submission status: Accepted

Solution code:
n=input()
flg = 0
for s in n:
    if s == '7':
        flg = 1
 
if flg == 1:
      print('Yes')
else:
      print('No')

Submission status: Accepted

Solution code:
num=input()
flag=0
for i in range(3):
  if int(num[i])==7:
    flag=1
if flag==1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n = list(input())
ans = 0
for i in range(len(n)):
  if n[i] == "7":
    ans += 1
print("Yes" if ans > 0 else "No")

Submission status: Accepted

Solution code:
N=str(input())
if N.count('7')>0:
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
i = input()

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

Submission status: Accepted

Solution code:

n = int(input())
if n % 10 != 7 and (n - (n % 10)) % 100 != 70 and (n - (n % 10) - ((n - (n % 10)) % 100)) % 1000 != 700:
  print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
s=str(input())
h=1
for i in s:
    if i=='7':
        h=0
if h==0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
l = [i for i in N]
if '7' in l:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n = input()

ans = 'No'
for i in n:
	if i == '7':
		ans = 'Yes'
          
print(ans)

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
n =list(map(int, input().strip()))

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

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    a = N // 100
    b = (N % 100) // 10
    c = N % 10
    l = [a, b, c]
    if 7 in l:
        output = 'Yes'
    else:
        output = 'No'
    print(output)

main()

Submission status: Accepted

Solution code:
n=input()
if n[0]!="7" and n[1]!="7" and n[2]!="7":
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
k=list(input())
if k[0]=="7" or k[1]=="7" or k[2]=="7":
    print("Yes")

else:
    print("No")

Submission status: Accepted

Solution code:
n=int(input())
flag=0
while (n!=0):
    if((n%10)==7):
        print('Yes')
        flag+=1
        break
    else:
        n=n//10
if(flag==0):
    print('No')

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ans = ['No', 'Yes']
print( ans['7' in input()])

Submission status: Accepted

Solution code:
x = input()
y = [int(x) for x in list(x)]
if 7 in y:
	print('Yes')

else:
	print('No')

Submission status: Accepted

Solution code:
n=input()
cnt=0
for i in n:
  if i == '7':
    cnt=1
    break
if cnt==0:
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
N = input()
match_flg = 0
for nn in N:
  if( nn== "7" ):
    print( "Yes" )
    match_flg = 1
    break
if( match_flg == 0 ):
	print("No")

Submission status: Accepted

Solution code:
n = input()
flag = "ng"
for i in n:
  if i == "7":
    flag = "ok"
    break
if flag == "ng":
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
N = int(input())
oh = N//100
ot = (N-oh*100)//10
oo = N-oh*100-ot*10
if oh==7 or ot==7 or oo==7:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())

for i in range(0,3):
    if( n % 10 == 7):
        print("Yes")
        break
    n = int(n / 10)
else:
    print("No")

Submission status: Accepted

Solution code:
a = list(input())
 
yes = 0
 
for i in a:
  if i == '7':
    yes += 1
if yes > 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a, b, c = input()
flag = 'No'

if int(a)==7:
    flag = 'Yes'
elif int(b)==7:
    flag = 'Yes'
elif int(c)==7:
    flag = 'Yes'

print(flag)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=input()
counts=0
for i in range(0,len(N)):
    #print(N[i])
    if N[i]=='7':
        counts+=1
        #print(counts)   
        
    else:
        counts+=0
#print(counts)   
if counts>0:        
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s=str(input())

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
if n%10==7:
  print('Yes')
else:
  n=n//10
  if n%10==7:
    print('Yes')
  elif n//10==7:
    print('Yes')
  else:
    print('No')

Submission status: Accepted

Solution code:
n=list(input())
if n.count("7")==0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
for i in range(3):
  if n[i] == '7':
    print('Yes')
    exit()
if n[0]!='7' and n[1]!='7' and n[2]!='7':
  print('No')

Submission status: Accepted

Solution code:
N = input()
N = str(N)
F = int(N)

#one =int(N[-1])
#two =int(N[-2])
#thr =int(N[-3])
#N = int (N)


if F >= 100 and (int(N[-1]) == 7 or int(N[-2])==7 or int(N[-3]) == 7):
    print("Yes")
elif F >= 10 and (int(N[-1]) == 7 or int(N[-2])==7):
    print("Yes")
elif F >= 0 and (int(N[-1]) == 7):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
N1 = str(N)
output = []
for i in N1 :
    if i == "7" :
        print("Yes")
        break
    output.append(i)
if len(output) == 3 :
    print("No")

Submission status: Accepted

Solution code:
lucky = input()
a = int (lucky[0])
b = int (lucky[1])
c = int (lucky[2])
 
if (a == 7) or (b == 7) or (c == 7) :
    print ("Yes")
else :
    print ("No")

Submission status: Accepted

Solution code:
n = int(input())
n1 = n%10
n2 = ((n-n1)/10)%10
n3 = n//100

if (n1 == 7 or n2 == 7 or n3 == 7):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
n = input()
for i in n:
	if i == '7':
		print('Yes')
		sys.exit(0)
print('No')

Submission status: Accepted

Solution code:
import re

str = input()

search_result = re.search('7', str)

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

Submission status: Accepted

Solution code:
N = input()

a = 0
for i in range(3):
  if N[i] == '7':
    a = 1
    
if a == 1:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
s = list(input())
for i in range(3):
  if s[i] == "7":
    print("Yes")
    sys.exit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input().count("7"))

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

Submission status: Accepted

Solution code:
n = int(input())
l = [int(x) for x in list(str(n))]
if l[0]!=7 and l[1]!=7 and l[2]!=7:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
num = input()
word = list(num)
#print(word)
if word[0] == "7" :
    print("Yes")
elif word[1] == "7" :
    print("Yes")
elif word[2] == "7" :
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = str(input())

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)


def main():
    a = input()
    for i in range(len(a)):
        if a[i] == '7':
            print('Yes')
            return
    print('No')


main()

Submission status: Accepted

Solution code:
import sys

N=input()
for n in N:
  if n == '7':
    print("Yes")
    sys.exit()
print("No")

Submission status: Accepted

Solution code:
n = int(input())
if n // 100 == 7:
    print("Yes")
elif (n // 10) % 10 == 7:
    print("Yes")
elif n % 10 == 7:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a=input()
line=list(a)
count=0
for i in range(len(line)):
    num=int(line[i])
    if num==7:
        print("Yes")
        count+=1
        break
if count==0:
    print("No")

Submission status: Accepted

Solution code:
n = list(input())

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

Submission status: Accepted

Solution code:
import sys
import collections
input = sys.stdin.readline

N = int(input())

flag = False
for c in str(N):
	if c == '7':
		flag = True
if flag:
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
num = input()
if num.find('7') == -1:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
n = str(input())

for i in range(len(n)):
  if n[i]=="7":
    print("Yes")
    break
  if i == len(n)-1:
    print("No")

Submission status: Accepted

Solution code:
n = list(input())
c=0

for i in range(3):
	if n[i]=='7':
		print('Yes')
		c+=1
		break

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

Submission status: Accepted

Solution code:
N = input()

isSeven = False
for i in N:
    if int(i) == 7:
        isSeven = True

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

Submission status: Accepted

Solution code:
a = str(input())

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

Submission status: Accepted

Solution code:
a = input()
for i in range(len(a)):
    if int(a[i]) == 7:
        flag = 1
        break
    else:
        flag = 0
if flag == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N=input()
#print(list(N))
for i in range(3):
  if N[i] in '7':
    print('Yes')
    exit()
print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
k = 0
for i in range(len(n)):
    if int(n[i]) == 7:
        print("Yes")
        k = 1
        break
if k != 1:
    print("No")

Submission status: Accepted

Solution code:
N=input()

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

YES = "Yes"
NO = "No" 

S = input()

if "7" in S:
    print(YES)
else:
    print(NO)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import numpy as np

n=sys.stdin.readline()


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

Submission status: Accepted

Solution code:
a = int(input())
aa = list(str(a))
n = 0
for i in range(len(aa)):
    b = int(aa[i])
    if b == 7:
        n +=1
    else:
        n = n
if n > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
N = str(N)
l = []
for i in range(len(N)):
  l.append(N[i])
if '7' in l:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()

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

Submission status: Accepted

Solution code:
N = int(input())
N = str(N)
num = []
num = [int(x) for x in list(str(N))]
lenN = len(N)
flg = 0


for i in range(lenN):
    if num[i] == 7:
        flg = 1

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

Submission status: Accepted

Solution code:
inputbox=int(input())
a=inputbox//100
b=inputbox//10-a*10
c=inputbox-a*100-b*10
if(a== 7 or b== 7 or c == 7):
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())
if S // 100 == 7:
    print('Yes')
elif (S % 100) // 10 == 7:
    print('Yes')
elif (S % 100) % 10 == 7:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=str(input())
for i in range(len(N)):
    if int(N[i]) == 7:
        print("Yes")
        exit(0)
print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
a = int(a)
if a%10==7:
  print("Yes")
elif( a%100 )//10==7:
  print("Yes")
elif( a//100 )==7:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n = int(input())
m = str(n)
l = list(m)
if l.count("7")>0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
 
X = input()
test = list(X)
for num in test:
  tmp = int(num)
  if tmp == 7:
    print("Yes")
    sys.exit()
print("No")

Submission status: Accepted

Solution code:
def main():
    n = input()
 
    for s in n:
        if s == '7':
            print('Yes')
            return
    print('No') 
 
 
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
 
flag = "No"
for i in n :
    #print(int(i))
    if int(i)==7:
        flag="Yes"
        break
    else:
        flag="No"
print (flag)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = str(input())
i_count = 0
for i in A:
  if i == str(7):
    i_count = i_count+1

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

Submission status: Accepted

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

print('No')

Submission status: Accepted

Solution code:
from math import floor,ceil,sqrt,factorial,log
from collections import Counter, deque
def S(): return input()
def I(): return int(input())
def MS(): return map(str,input().split())
def MI(): return map(int,input().split())
def LS(): return list(MS())
def LI(): return list(MI())
def LLS(): return [list(map(str, l.split() )) for l in input()]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def LLSN(n: int): return [LS() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]

N = I()

while N:
    mod = N % 10
    if mod == 7:
        print("Yes")
        exit()
    N //= 10

print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(N: int):
    strN = str(N)
    for i in range(3):
        if strN[i] == "7":
            print(YES)
            return
        
    print(NO)
    return


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    solve(N)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inp = list(input())
flag = 0

for i in range(len(inp)):
    if int(inp[i]) == 7:
        flag = 1
        break

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()
n=list(n)
flag=0
for i in n:
    if i=='7':
        flag=1
if flag==1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())
h = n // 100
d = (n-h*100)// 10
c = n % 10

if h == 7 or d ==7 or c ==7:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S = input()

a = 0
for i in range(len(S)):
    if S[i] == "7":
        a = 1
        break
    else:
        a = 0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

if list(filter(lambda x: x=="7", N)):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

s = sys.stdin.readline()

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

Submission status: Accepted

Solution code:
N=input()
if N.count("7")>=1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N=input()
N=N.replace('7','')
print('Yes' if len(N)<3 else 'No')

Submission status: Accepted

Solution code:
a = input()
b=list(a)
res= 0
for i in b:
    if i == '7':
        print("Yes")
        res = res+1
        break
if res == 0:
    print("No")

Submission status: Accepted

Solution code:
import numpy as np
import math
# for AtCoder
# import fractions
from collections import deque 
from functools import reduce
 
# input = sys.stdin.readline
 
n = input()
 
if (n[0] == '7' or n[1] == '7' or n[2] == '7'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
A = input()
list_num = [int(a) for a in A]
result = False
for l in list_num:
    if l == 7:
        result = True
if result:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N=str(input())
A=N.find("7")
if A==-1:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a=input()
cnt=0
for i in a:
  if i=="7":
    cnt+=1
    break
print(["No","Yes"][cnt])

Submission status: Accepted

Solution code:
n=int(input())
judge = False

string = str(n)
for i in range(len(string)):
  if(string[i] == "7"):
    judge = True

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

Submission status: Accepted

Solution code:
l = list(input())
 
for i in range(3):
  if l[i] == "7":
    print("Yes")
    exit()
 
print("No")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
import sys
def getN():
    return int(input())
def getNM():
    return map(int, input().split())
def getlist():
    return list(map(int, input().split()))

def main():
    s = input().strip()
    for c in s:
        if c == "7":
            print("Yes")
            sys.exit()

    print("No")

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()
j = False
for i in range(len(x)):
  if x[i] == '7':
    j = True
if j:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

luck = False
N = int(read())
while N:
    N, r = divmod(N, 10)
    if r == 7:
        luck = True

print('Yes' if luck else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
l = [int(x) for x in list(str(n))]
# print(l)
hantei = 'No'
for i in range(len(l)):
    if l[i] == 7:
        hantei = 'Yes'
        break
print(hantei)

Submission status: Accepted

Solution code:
nw = str(input())
bool = "False"

for i in range(3):
    if nw[i] == str(7):
        bool = "True"

if bool == "False":
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
input = int(input())

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

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

Submission status: Accepted

Solution code:
A = list(map(int, input()))

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

else:
  print('No')

Submission status: Accepted

Solution code:
import sys

input_methods=['clipboard','file','key']
using_method=0
input_method=input_methods[using_method]

IN=lambda : map(int, input().split())
mod=1000000007

#+++++

def main():
	s = input()
	ret = 'Yes' if '7' in s else 'No'
	print(ret)
	
	
	
#+++++
isTest=False

def pa(v):
	if isTest:
		print(v)
		
def input_clipboard():
	import clipboard
	input_text=clipboard.get()
	input_l=input_text.splitlines()
	for l in input_l:
		yield l

if __name__ == "__main__":
	if sys.platform =='ios':
		if input_method==input_methods[0]:
			ic=input_clipboard()
			input = lambda : ic.__next__()
		elif input_method==input_methods[1]:
			sys.stdin=open('inputFile.txt')
		else:
			pass
		isTest=True
	else:
		pass
		#input = sys.stdin.readline
			
	ret = main()
	if ret is not None:
		print(ret)

Submission status: Accepted

Solution code:
s = input()
flg = False
for i in range(3):
    if int(s[i])==7:
        flg = True

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())

# print(N)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())

N=str(N)

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

else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=str(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
#import numpy as np

n = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()