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:


num = input("")
if len(num) == 3:
    if "7" in num:
        print("Yes")
    else:
        print("No")
else:
    print("The input is not of three digits.")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
  
N = input()
flag = 'No'
for i in N:
    if i == '7':
        flag = 'Yes'
        
print(flag)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
  
N = input()
flag = 'No'
for i in N:
    if i == '7':
        flag = 'Yes'
        
print(flag)

Submission status: Accepted

Solution code:
N = input()
if int(N[0]) == 7:
    print('Yes')
elif int(N[1]) == 7:
    print('Yes')
elif int(N[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:
N = int(input())

List = list(str(N))

if List[1] == "7" or List[2] == "7" or List[0] == "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:
n  = input()

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

Submission status: Accepted

Solution code:
n = int(input())
a = set()
while n != 0:
    rem = n % 10
    a.add(rem)
    n //= 10
if 7 in a:
    print("Yes")

else:
    print("No")

Submission status: Accepted

Solution code:
n=int(input())
a=set()
while n!=0 :
    rem=n%10
    a.add(rem)
    n//=10
if 7 in a :
    print("Yes")
    
else :
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
N = sys.stdin.readline()
for i in N:
    if i == "7":
        print("Yes")
        exit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np

N=input()

Ans='No'

for i in N:
    if i=='7':
        Ans='Yes'
        
print(Ans)

Submission status: Accepted

Solution code:
N = list(input())

for i in range(3):
  if N[i] == '7':
    print('Yes')
    exit()
  else:
    pass
print('No')

Submission status: Accepted

Solution code:
n = int(input())
c = False
while n>0:
    a = n%10
    n//=10
    if a == 7:
        c = True
if c:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10 ** 9)
input = sys.stdin.readline
from itertools import permutations,  combinations, accumulate
from functools import *
from collections import deque, defaultdict, Counter
from heapq import heapify, heappop, heappush, heappushpop

INF = float('inf')
NIL = - 1


N = input().rstrip()
n_digits = list(map(int, list(N)))

print('Yes' if 7 in n_digits else 'No')

Submission status: Accepted

Solution code:
N = input()

flag = False

for char in N:
  if char == '7':
    print('Yes')
    flag = True
    break

if flag == False:   
  print('No')

Submission status: Accepted

Solution code:
n = int(input())

a = n//100
b, c = divmod(n%100, 10)
if a == 7 or b == 7 or c == 7:
	print("Yes")
else:
	print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:

n = int(input())

a = (n // 100 == 7)
b = (n % 100 // 10 == 7)
c = (n % 10 == 7)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

f = False
for i in range(len(N)):
  if N[i] == '7':
    f = True
    
if f:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a=input()
ans='No'
for i in a:
  if i=='7':
    ans='Yes'
    break
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = input()
s = str(i)
if s[-1] == "7":
    print("Yes")
elif s[-2] == "7":
    print("Yes")
elif s[-3] == "7":
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = input()
for ni in n:
    if ni == '7':
        print('Yes')
        quit()
print('No')

Submission status: Accepted

Solution code:
N=input()

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

Submission status: Accepted

Solution code:
def resolve():
    n=input()

    if  '7' in n:
        print('Yes')
    else:
        print('No')
if __name__ == "__main__":
    resolve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

try:
    for n in N:
        #print("{}".format(n))
        intN = int(n)
        if intN == 7:
            print("{}".format("Yes"))
            raise Exception
    print("{}".format("No"))
except:
    pass

Submission status: Accepted

Solution code:
#A
n = input()
if n.count("7") > 0:
    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 = input()
A = list(n)
if '7' in A: print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
n = input()
for ni in n:
    if ni == '7' :
        print( 'Yes' )
        quit()
print( 'No' )

Submission status: Accepted

Solution code:
n = int(input())
ans = 0
tmp = 0
for i in range(3):
    tmp = n % 10
    if tmp == 7:
        ans =1
    n = (n - tmp) / 10
if ans == 1:
    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()
if str(N).count('7')!=0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a = input()

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

Submission status: Accepted

Solution code:
sequencia = input()

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

Submission status: Accepted

Solution code:
N = str(input())
#N.reverse()
i :int=0
for st in N:
  if st=="7":
    print("Yes")
    break
  else:
    i+=1
if i==3:
  print("No")

Submission status: Accepted

Solution code:
n = int(input())
if 0 <= n % 700 < 100:
    print('Yes')
elif  n % 100 > 9 and 0<= (n % 100) % 70 < 10:
    print('Yes')
elif n % 10 == 7:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print('YNeos'['7' not in input()::2])

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()
n=str(n)
t='nd'
for i in n:
    if i=='7':
        print('Yes')
        t='d'
        break
if t=='nd':print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input())
ok = False
for i in range(3):
    if n[i] == "7":
        ok = True
        break

if ok:
    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
  if i == len(N)-1:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
h = N // 100
t = (N - h*100) // 10
o = N - h*100 - t*10
if h == 7 or t == 7 or o == 7:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

N = input()
ans = "Yes" if '7' in N else "No"

print(ans)

Submission status: Accepted

Solution code:
s = input()
if s.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:
s=input()
if (s[0]=='7')or(s[1]=='7')or(s[2]=='7'):
  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%10 == 7):
    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:
def main():
    n = input()
    for x in n:
        if x == "7":
            print("Yes")
            return
    print("No")

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import deque
import math; floor,ceil = math.floor,math.ceil
import sys; input = lambda: sys.stdin.readline().rstrip()
aint = lambda: int(input()); ints = lambda: list(map(int, input().split()))
Yes = lambda boolean: print('Yes') if boolean else print('No')
YES = lambda boolean: print('YES') if boolean else print('NO')
is_even = lambda x: True if x%2==0 else False

def main():
    s = input()
    Yes(s[0]=='7'or s[1]=='7'or s[2]=='7')

if __name__ == '__main__':
    main()

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:
# | Its_Rashid | #
a = input()
print("Yes" if "7" in a else "No")

Submission status: Accepted

Solution code:
n = int(input())

x = n%10
if x==7:
  print("Yes")

else:
  y = n//10#nを更新(位をずらす)

  if y%10==7:
    print("Yes")

  else:
    z = y//10
    if z==7:
      print("Yes")
    else:
      print("No")

Submission status: Accepted

Solution code:
n=int(input())#入力を受け取る

x=n%10

if x==7:
  print("Yes")  

else:
  y = n//10

  if y%10==7:
    print("Yes")
  
  else:
    z = y//10
    if z==7:
      print("Yes")
    else:
      print("No")

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = input()
k = 0

if a == '7':
  k += 1
elif b == '7':
  k += 1
elif c == '7':
  k += 1
if k == 0:
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
S = [int(i) for i in list(input())]
has_seven = 0
for s in S:
    if s==7:
        has_seven = 1
if has_seven:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = input()
if n.count('7') > 0:
	print('Yes')
else:
	print('No')
#for i in n:
#	print(i)

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def seven(x):
    for i in range(len(x)):
        if str[i]=='7':
            print("Yes")
            return
    print('No')  
str=input()
seven(str)

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
N = input()
assert 100 <= int(N) <= 999
print("Yes") if str(7) in N else print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_list = list(input())

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

Submission status: Accepted

Solution code:
N=int(input())
n=N
for i in range(3):
    tmp=n%10
    if tmp==7:
        print("Yes")
        break
    n=n//10
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 = input()
if "7" in s:
  print("Yes")
else:print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

#############
# Libraries #
#############

import sys
input = sys.stdin.readline

import math
from collections import deque
from fractions import gcd
from functools import lru_cache


#############
# Constants #
#############

MOD = 10**9+7
INF = float('inf')

#############
# Functions #
#############

######INPUT######
def inputI(): return int(input().strip())
def inputS(): return input().strip()
def inputIL(): return list(map(int,input().split()))
def inputSL(): return list(map(str,input().split()))
def inputILs(n): return list(int(input()) for _ in range(n))
def inputSLs(n): return list(input().strip() for _ in range(n))
def inputILL(n): return [list(map(int, input().split())) for _ in range(n)]
def inputSLL(n): return [list(map(str, input().split())) for _ in range(n)]

#####Inverse#####
def inv(n): return pow(n, MOD-2, MOD)

######Combination######
kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret

######Factorization######
def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])

    if arr==[]:
        arr.append([n, 1])
    return arr

#####LCM#####
def lcm(a, b):
    return a * b // gcd (a, b)

#############
# Main Code #
#############

N = inputS()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    S = input()
    if S.find("7") != -1:
        print("Yes")
    else:
        print("No")
if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

N = int(stdin.readline().rstrip())


a=N%10
b=((N-a)/10)%10
c=(N-10*b-a)/100
n=[a,b,c]
if 7 in n:
    print('Yes')

else:
    print('No')

Submission status: Accepted

Solution code:
n = input()

nn = list(n)
flag = 0

for i in range(3):
    if nn[i] == '7':
        flag += 1

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

Submission status: Accepted

Solution code:
print('YNeos'['7'not in input()::2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math as mat
N = int(input())
A = int(mat.floor(N/100))
B = int(mat.floor((N-A*100)/10))
C = int(mat.floor(N-A*100-B*10))
if A == 7 or B == 7 or C == 7 :
    ans = str('Yes')
else:
    ans = str('No')

print(ans)

Submission status: Accepted

Solution code:
num = int(input())
n100 = num//100
n10 = (num-n100*100)//10
n1 = (num-n100*100-n10*10)

if n100 == 7 or n10 == 7 or n1 == 7:
  print('Yes')
else:
  print("No")

Submission status: Accepted

Solution code:
result = False

list = list(input())
# print(list[1])


for num in range(len(list)):
    #print(list[num])
    #print(type(list[num]))
    if int(list[num]) == 7:
        result = True
        print('Yes')
        break

if result == False :
    print('No')

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(input())

for i in a:
  if i == '7':
    print("Yes")
    exit(0)
print("No")

Submission status: Accepted

Solution code:
a = input()
if '7' in a:
   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:
N = list(str(input()))
cnt = 0
for a in N:
    if a == '7':
        cnt += 1
        print("Yes")
        break
if cnt == 0:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c = map(int,input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())

s = set(s)

if('7' in s):
  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:
N = input()
if int(N[2])==7:
    print("Yes")
elif int(N[1])==7:
    print("Yes")
elif int(N[0])==7:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
if '7' in input(): 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:
s = input()

if '7' in s:
  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:
S = input()
print("Yes" if S.count("7") else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = str(input())
seven = False

for i in range(len(a)):
    if a[i] == '7':
        seven = True
        break

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
flg = False

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

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = str(sys.stdin.read())
flag = False

for s in N:
    if s == '7':
        flag = True

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
m = input()

if m.find('7') == -1:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
str = input()
if str[0] == '7' or str[1] == '7' or str[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:
N= str(input())
if "7" in N:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N=list(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")
    exit()

print("No")

Submission status: Accepted

Solution code:
l=list(str(input()))

ans="Yes" if "7" in l else "No"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input());

if N%10 == 7:
  print("Yes")
elif (N - N%10)%100 == 70:
  print("Yes")
elif (N - N%100) == 700:
  print("Yes") 
else :
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
N = int(input())
if N%10 == 7:
  print("Yes")
elif (N-N%10)%100 == 70:
  print("Yes")
elif N-N%100 == 700:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N=str(input())
ans=0

for i in range(len(N)):
    if N[i]=='7':
        ans+=1

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

Submission status: Accepted

Solution code:
s = list(input())

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

Submission status: Accepted

Solution code:
a = int(input())
if (a-7) % 10 == 0:
  print("Yes")
elif (a-70) % 100 < 10:
  print("Yes")
elif a >= 700 and a < 800:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

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:
a,b,c=input()
if a=='7' or b=='7' or c=='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 = int(input())
mybool = False

while (n>0):
    if ((n%10) == 7):
        mybool = True
        break
    n = n//10

if mybool == True:
    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:
l = list(map(int, input()))
if 7 in l:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
#input
N = int(input())

# check
fl = False
for n in str(N):
    if int(n) == 7:
        fl = True

# output
if fl is True:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
print('Yes') if N.count('7') 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=str(input())
if "7" in N:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = input()
ans = list(set(N))
#print(ans)
if ans.count('7'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys

A = input()

for i in range(len(A)):
    if A[i] == '7':
        print('Yes')
        sys.exit()
print('No')

Submission status: Accepted

Solution code:
def f(n):
  return '7' in n
 
print 'Yes' if f(raw_input()) else 'No'

Submission status: Accepted

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

Submission status: Accepted

Solution code:
"""
her basamağaa bak, if 7 varsa print yes else print no :)

1. 526 572 777 : "526" "572" "777" 
"""
flag = False

N = input()
N = int(N)

for i in range(3) :
    if N%10==7:
        flag = True
    N = N//10
 
    
if flag :
    print("Yes")
else :
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=list(input())

s=0

for i in range(0,3):

    if int(n[i])==7:

        s+=1
    else:pass

if s>=1:
    print("Yes")

else:print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
x = len(n)
b = 'false'
for i in range(x):
    if n[i] is '7':
        b = 'true'
        print('Yes')
        break
if b is not 'true':
  print('No')

Submission status: Accepted

Solution code:
n = int(input())

k1 = (n - n%100) / 100
k2 = (n%100 - n%10) / 10
k3 = n%10

if (k1==7 or k2==7 or k3==7):
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
if n%10 == 7:
    print('Yes')
elif n - n%100 == 700:
    print('Yes')
elif n - (n - n%100) - n%10 == 70:
    print('Yes')
else: 
    print('No')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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:
a=int(input())
while(a>0):
  k=a%10
  if k==7:
    print("Yes")
    exit()
  a//=10
print("No")

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:
print("Yes" if "7" in set([s for s in input()]) else "No")

Submission status: Accepted

Solution code:
"""
    Author : thekushalghosh
    Team   : CodeDiggers
"""
import sys,math,cmath,time
start_time = time.time()
################# ---- USER DEFINED INPUT FUNCTIONS ---- #################
def inp():
    return(int(input()))
def inlt():
    return(list(map(int,input().split())))
def insr():
    s = input()
    return(s[:len(s) - 1])
def invr():
    return(map(int,input().split()))
##########################################################################
################# ---- THE ACTUAL CODE STARTS BELOW ---- #################
 
def solve():
  n = inp()
  if "7" in list(str(n)):
    print("Yes")
  else:
    print("No")
################## ---- THE ACTUAL CODE ENDS ABOVE ---- ##################
##########################################################################
ONLINE_JUDGE = __debug__
if not ONLINE_JUDGE:
    sys.stdin = open('input.txt','r')
    sys.stdout = open('output.txt','w')
else:
    input = sys.stdin.readline
t = 1
for tt in range(t):
    solve()
if not ONLINE_JUDGE:
    print("Time Elapsed:",time.time() - start_time,"seconds")
sys.stdout.close()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
if "7" in a:
  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()
s = 'No'
for i in n:
    if i == '7':
        s = 'Yes'
        break
print(s)

Submission status: Accepted

Solution code:
a = int(input())
b = a//100
c = a//10 - b*10
d = a%10
if b != 7 and c != 7 and d != 7:
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
N = input()
s = list(map(int,list(N)))
for i in range(0,3,1):
    if s[i]==7:
        print("Yes")
        exit()
print("No")

Submission status: Accepted

Solution code:
num = input()
if '7' in num:
	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:
num = list(input())
ans = 'No'
if '7' in num:
  ans = 'Yes'
  
print(ans)

Submission status: Accepted

Solution code:
#文字列の入力
n = str(input())

#7が含まれるかどうか判別
if "7" in n :
    text = "Yes"
else :
	text = "No"

#表示
print(text)