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:
a = list(input())

length = len(a) - 1 
check = 0

while(length >= 0):
  if(a[length] == "7"):
    check += 1
  length -= 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 整数の入力
n = int(input())
li = list(str(n))
for l in li:
    if int(l) == 7:
        print("Yes")
        exit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=str(input())

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

Submission status: Accepted

Solution code:
n=str(input())
n=list(n)
count=0
for i in range(len(n)):
  if(n[i]=="7"):
    count+=1
if(count!=0):
  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:
str1 = str(input())

for i in str1:
    if i == '7':
        print('Yes')
        exit()

print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = list(map(int, input()))
num = N.count(7)
if num != 0:
  ans = "Yes"
else:
  ans = "No"
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
a = 'No'
while N >= 1:
    
    if N % 10 == 7:
        a = 'Yes'
        break
    else:
        N = (N - N%10)/10
print(a)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys
# import math
# import re                                    # re.compile(pattern) => ptn obj; p.search(s), p.match(s), p.finditer(s) => match obj; p.sub(after, s)
# from collections import deque                # deque class. deque(L): dq.append(x), dq.appendleft(x), dq.pop(), dq.popleft(), dq.rotate()
# from collections import defaultdict          # subclass of dict. defaultdict(facroty)
# from collections import Counter              # subclass of dict. Counter(iter): c.elements(), c.most_common(n), c.subtract(iter)
# from heapq import heapify, heappush, heappop # built-in list. heapify(L) changes list in-place to min-heap in O(n), heappush(heapL, x) and heappop(heapL) in O(lgn).
# from heapq import nlargest, nsmallest        # nlargest(n, iter[, key]) returns k-largest-list in O(n+klgn).
# from itertools import count, cycle, repeat   # count(start[,step]), cycle(iter), repeat(elm[,n])
# from itertools import groupby                # [(k, list(g)) for k, g in groupby('000112')] returns [('0',['0','0','0']), ('1',['1','1']), ('2',['2'])]
# from itertools import starmap                # starmap(pow, [[2,5], [3,2]]) returns [32, 9]
# from itertools import product                # product(iter, repeat=n)
# from itertools import accumulate             # accumulate(iter[, f])
# from functools import reduce                 # reduce(f, iter[, init])
# from functools import lru_cache              # @lrucache ...arguments of functions should be able to be keys of dict
# from bisect import bisect_left, bisect_right # bisect_left(a, x, lo=0, hi=len(a)) returns i such that all(val<x for val in a[lo:i]) and all(val>-=x for val in a[i:hi]).
# from copy import deepcopy                    # to copy multi-dimentional matrix without reference


def main():
    mod = 1000000007                  # 10^9+7
    inf = float('inf')
    sys.setrecursionlimit(10**6)    # 1000 -> 1000000
    def input(): return sys.stdin.readline().rstrip()
    def ii():  return int(input())
    def mi():  return map(int, input().split())
    def mi_0(): return map(lambda x: int(x)-1, input().split())
    def lmi(): return list(map(int, input().split()))
    def lmi_0(): return list(map(lambda x: int(x)-1, input().split()))
    def li():  return list(input())
    
    
    s = input()
    print('Yes') if '7' in s else print('No')

if __name__ == "__main__":
    main()

Submission status: Accepted

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

if 7 in nums:
    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:
print('Yes' if '7' in input() else 'No')

Submission status: Accepted

Solution code:
isSeven = 0
n = input()
#print(len(n))
if (len(n)!=3):
  print("No")
  quit()
for i in n:
  i = int(i)
  if (i==7):
    isSeven = 1
if (isSeven!=0):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
N = str(N)
judge = False
for i in range(len(N)):
    if N[i] == '7':
        judge = True
if judge:
    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:
s = int(input())
t=s//10
if s//100==7:
    print("Yes")
elif t%10==7:
    print("Yes")
elif s%10==7:
    print("Yes")
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
while n>0:
    if n%10==7:
        print("Yes")
        exit()
    n=n//10
print("No")

Submission status: Accepted

Solution code:
a = input()

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

Submission status: Accepted

Solution code:
s = input()

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 n[0]=="7" or n[1]=="7" or n[2]=="7":
     print("Yes")
else:
     print("No")

Submission status: Accepted

Solution code:
import sys

n = int(input())

if n % 10 == 7:
    print("Yes")
    sys.exit()
    
n_10 = n // 10
if n_10 % 10 == 7:
    print("Yes")
    sys.exit()

n_100 = n // 100
if n_100 % 10 == 7:
    print("Yes")
    sys.exit()

print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
for _ in range(len(n)):
    x = int(n)%10
    n = int(n)//10
    if x ==7:
        print("Yes")
        break
else:print("No")

Submission status: Accepted

Solution code:
# coding: utf-8

import sys
import math
import collections
import itertools
INF = 10 ** 13
MOD = 10 ** 9 + 7
def input() : return sys.stdin.readline().strip()
def lcm(x, y) : return (x * y) // math.gcd(x, y)
def I() : return int(input())
def LI() : return [int(x) for x in input().split()]
def RI(N) : return [int(input()) for _ in range(N)]
def LRI(N) : return [[int(x) for x in input().split()] for _ in range(N)]
def LS() : return input().split()
def RS(N) : return [input() for _ in range(N)]
def LRS(N) : return [input().split() for _ in range(N)]
def PL(L) : print(*L, sep="\n")
def YesNo(B) : print("Yes" if B else "No")
def YESNO(B) : print("YES" if B else "NO")

N = input()

YesNo("7" in N)

Submission status: Accepted

Solution code:
print('Yes' if any([i == '7' for i in input()]) else '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:
num = input()
lucky = num.count('7')
if lucky != 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
input_num=int(input())
jugy_num=0
slash_num=input_num
while slash_num > 1:
	parcent_num=int(slash_num%10)
	slash_num=int(slash_num/10)
	if parcent_num == 7:
		jugy_num=1
if jugy_num == 1:
	print("Yes")
else:
	print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())    #3桁の整数を入力

for i in range(3):
    tmp = n % 10
    if tmp == 7:
        print('Yes')
        break
    if i == 2:
        print('No')
    n = int(n / 10)

Submission status: Accepted

Solution code:
s = input()

for a in s:
    if a == "7":
        print("Yes")
        exit()

print("No")

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
lst = list(n)
for c in lst:
  if(c=='7'):
    print('Yes')
    break
else:
  print('No')

Submission status: Accepted

Solution code:
n = input()
txt = 'No'

if '7' in n:
    txt = 'Yes'

print(txt)

Submission status: Accepted

Solution code:
n = str(input())

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

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

Submission status: Accepted

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

if __name__== "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
moji=list(map(str,input().split()))
if '7' in moji[0]:
    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 = input()
flag = 0

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

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

Submission status: Accepted

Solution code:
a = int(input())
third = a // 100
second = a // 10 - third * 10
first = a - (third *100 +second*10)
if(third == 7 or second == 7 or first == 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()

flag = False
for i in N:
    if i == "7":
        flag = True

if flag:
    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 i in range(3):
  if N[i] == '7':
    print('Yes')
    exit();

print('No')

Submission status: Accepted

Solution code:
N = int(input())
digit = len(str(N))
for i in range(digit):
    if N % 10 == 7:
        print('Yes')
        exit()
    N = N // 10

print('No')

Submission status: Accepted

Solution code:
A=input()
 
if "7" in A:
  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:
num=int(input())
flag="No"

num1=num%10
num2=(num-num1)/10%10
num3=int(num/100)

if num1==7 or num2==7 or num3==7:
    flag="Yes"
    
print(flag)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import itertools
from collections import deque,defaultdict,Counter
from itertools import accumulate
import bisect
from heapq import heappop,heappush,heapify
import math
from copy import deepcopy
import queue
#import sympy as syp(素因数分解とか)
Mod = 1000000007
  
def sieve_of_eratosthenes(n):
    if not isinstance(n,int):
        raise TypeError("n is not int")
    if n<2:
        raise ValueError("n is not effective")
    prime = [1]*(n+1)
    for i in range(2,int(math.sqrt(n))+1):
        if prime[i] == 1:
            for j in range(2*i,n+1):
                if j%i == 0:
                    prime[j] = 0
    res = []
    for i in range(2,n+1):
        if prime[i] == 1:
            res.append(i)
    return res

 
class UnionFind:
    def __init__(self,n):
        self.parent = [i for i in range(n+1)]
        self.rank = [0 for i in range(n+1)]
    
    def findroot(self,x):
        if x == self.parent[x]:
            return x
        else:
            y = self.parent[x]
            y = self.findroot(self.parent[x])
            return y
    
    def union(self,x,y):
        px = self.findroot(x)
        py = self.findroot(y)
        if px < py:
            self.parent[py] = px
        else:
            self.parent[px] = py
 
    def same_group_or_no(self,x,y):
        return self.findroot(x) == self.findroot(y)

def main(): #startline-------------------------------------------
    print("Yes" if "7" in input() else "No")
if __name__ == "__main__":
    main() #endline===============================================

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
s=input()
c=0
for i in s:
  if int(i)==7:
    print("Yes")
    c+=1
    break
if c==0:
  print("No")

Submission status: Accepted

Solution code:
N = [i for i in input()]

if "7" in N:
    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:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

Solution code:
N = input()
  
pos = N.find('7')

if pos >= 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

if num[0] == "7" or num[1] == "7" or num[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 = int(input())
strN = str(N)

if strN.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())

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

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:
a,b,c=map(int,input())
if(a==7 or b==7 or c==7):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
flag = False

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

if(flag):
    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:
x = input()
if '7' in x:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
st = input()
isSeven = False
for s in st:
    if s == '7':
        isSeven = True
        break
print(('No', 'Yes')[isSeven])

Submission status: Accepted

Solution code:
#ABC162A
import sys
N = sys.stdin.readline().rstrip()
 
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:
n = input()
if '7' in n:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
import sys

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

for e in s:
  if e=="7":
    print("Yes")
    break
else:
  print("No")

Submission status: Accepted

Solution code:
n=input()
n=int(n)
og=n
flag=0
while(n>0):
    d=n%10
    n=n//10
    if(d==7):
        flag=flag+1
        
if(flag>0):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
#! /usr/bin/env python
# -*- coding: utf-8 -*-

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

if __name__ == '__main__':
	main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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 = list(input())
for i in n:
    if (i == '7'):
        print('Yes')
        exit()
print('No')

Submission status: Accepted

Solution code:
a = int(input());
while a>0:
    n = a %10;
    if n == 7:
        print("Yes");
        break;
    a = a //10;
if a == 0:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
a = str(n)
if a.count('7') == 0:
  print('No')
else:
  print('Yes')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = list(input())
flag = False

for i in range(3):
  if n[i] == "7":
    flag = True
    
if flag:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input())

if n[:1] == "7" or n[1:2] == "7" or n[2:3] == "7":
    print("Yes")

else:
    print("No")

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
num = int(input('')) #input()で入力を受け取ってint()で数字型に変換します。

num_100 = num / 100

num_10 = (num % 100) / 10

num_1 = (num % 10)

if int(num_100) == 7:
    print("Yes")
elif int(num_10) == 7:
    print("Yes")
elif int(num_1) == 7:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b,c = input()
print('Yes' if(a=='7' or b=='7' or c=='7') else 'No')

Submission status: Accepted

Solution code:
N = map(int, list(input()))
if 7 in N:
    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:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

n1 = n//100
n2 = (n-n1*100)//10
n3 = n%10

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
r=int(input())
c=0
if r>699 and r<800:
    c+=1
r=r%100
if r>69 and r<80:
    c+=1
r=r%10
if r==7:
    c+=1


if c>0:
    print("Yes")
if c==0:
    print("No")

Submission status: Accepted

Solution code:
s = input()
print('Yes' if s[0] =='7' or s[1] =='7' or s[2] =='7' else '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:
z = map(int, list(str(input())))
print('Yes' if 7 in z else 'No')

Submission status: Accepted

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

# Input Stdin
## 100 <= N <= 999


flg = 'No'
N = input()
for n in N:
    if n == '7':
        flg = 'Yes'
        break

print(flg)

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

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

n = ni()
j=False
while n!=0:
    if n%10==7:
        j=True
    n=n//10
if j:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N=int(input())
o=0
while(N!=0):
    b=N%10
    N=N//10
    if(b==7):
        o=1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

N_split = list(N)

for i in range (3):
    if N_split[i] == '7':
        print('Yes')
        break
    elif i == 2:
        print('No')

Submission status: Accepted

Solution code:
s = input()
if s.count("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()

frag = 0
for i in range(3):
  s = n[i:i+1]
  if(s == "7"):
    frag = 1
  if(frag == 1):
    break
if(frag == 1):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = input()

include_7 = False
for s in N:
  if s == '7':
    include_7 = True
print('Yes') if include_7 else print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
i = 0

for num in range(len(n)):
  if n[num] == '7':
    i += 1
if i > 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
#author : dokueki

import sys
INT_MAX = sys.maxsize
INT_MIN = -(sys.maxsize)
sys.setrecursionlimit(10**7)
mod = 1000000007


def IOE():
    sys.stdin = open("input.txt", "r")
    sys.stdout = open("output.txt", "w")


def main():
    s = input()
    print("Yes" if "7" in s else "No")


if __name__ == "__main__":
    try:
        IOE()
    except:
        pass
    main()

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input = int(input())
list = [int(x) for x in str(input)]
count = 0
for x in list:
  if x == 7:
    count = count + 1
if count >= 1:
  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:
a=int(input())
s=str(a)
l=list(s)
y="7"
if y in l:
    print("Yes")
else:
    print("No")

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:
n = input()

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

Submission status: Accepted

Solution code:
N = input()
n = list(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())
A=B=C=0
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:
N = input()
list_N = list(N)
list_N = [int(s) for s in list_N]

if(list_N[0] != 7 and list_N[1] != 7 and list_N[2] != 7):
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
l = list(str(input()))
if '7' in l:
         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:
import sys
from random import choice,randint
inp=sys.stdin.readline
out=sys.stdout.write
flsh=sys.stdout.flush
 
sys.setrecursionlimit(10**9)
inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(-1,0),(0,1),(1,0),(0,-1)]
ddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]
 
def MI(): return map(int, inp().strip().split())
def LI(): return list(map(int, inp().strip().split()))
def LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines().strip()]
def LI_(): return [int(x)-1 for x in inp().strip().split()]
def LF(): return [float(x) for x in inp().strip().split()]
def LS(): return inp().strip().split()
def I(): return int(inp().strip())
def F(): return float(inp().strip())
def S(): return inp().strip()
def pf(s): return out(s+'\n')
def JA(a, sep): return sep.join(map(str, a))
def JAA(a, s, t): return s.join(t.join(map(str, b)) for b in a)

def main():
    n = I()
    if '7' in str(n):
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import bisect,sys
import math
from collections import deque

def sRaw():
    return input().rstrip("\r")


def iRaw():
    return int(input())


def ssRaw():
    return input().split()


def isRaw():
    return list(map(int, ssRaw()))

INF = 1 << 29

DIV = (10**9) + 7

def mod_inv_prime(a, mod=DIV):
    return pow(a, mod-2, mod)


def mod_inv(a, b):
    r = a
    w = b
    u = 1
    v = 0
    while w != 0:
        t = r//w
        r -= t*w
        r, w = w, r
        u -= t*v
        u, v = v, u
    return (u % b+b) % b


def CONV_TBL(max, mod=DIV):
    fac, finv, inv = [0]*max, [0]*max, [0]*max
    fac[0] = fac[1] = 1
    finv[0] = finv[1] = 1
    inv[1] = 1
    for i in range(2, max):
        fac[i] = fac[i-1]*i % mod
        inv[i] = mod - inv[mod % i] * (mod//i) % mod
        finv[i] = finv[i-1]*inv[i] % mod

    class CONV:
        def __init__(self):
            self.fac =fac
            self.finv = finv
            pass

        def ncr(self, n, k):
            if(n < k):
                return 0
            if(n < 0 or k < 0):
                return 0
            return fac[n]*(finv[k]*finv[n-k] % DIV) % DIV
        
    return CONV()



sys.setrecursionlimit(200005)


def main():
    s = sRaw()
    return "Yes" if "7" in s else "No"
if __name__ == "__main__":
    print(main())

Submission status: Accepted

Solution code:
number = str(input())
flag = False
for i in range(len(number)):
	if int(number[i])==7:
		flag = True
		break
if(flag):
	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=int(input())
while n!=0:
    d=n%10
    n=n//10
    if d==7:
        print("Yes")
        break
if d!=7:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

if len(str(N)) == 3:
    print('Yes' if '7' in str(N) else 'No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
length_N = len(N)
count = 0

for i in range(length_N):
    if N[i] == '7':
        print('Yes')
        count += 1
        break
    
if count == 0:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
s = str(N)

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

Submission status: Accepted

Solution code:
x=input()
z="No"
for y in x:
  if y=="7":
    z="Yes"
print(z)

Submission status: Accepted

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

Submission status: Accepted

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