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 = str(input())
array = list(map(str,N))
i= 0
while all:
    if(array[i]=='7'):
        print("Yes")
        break
    if(i==2):
        print("No")
        break
    i+=1

Submission status: Accepted

Solution code:
import sys

#n
n=input()

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

print("No")

Submission status: Accepted

Solution code:
n = int(input())

a = list(map(int, list(str(n))))

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

Submission status: Accepted

Solution code:
# K, N = map(int, input().split())
# a = list(map(int, input().split()))

# N = int(input())

n = input()
flag = 0
for i in n:
    if i == "7":
        flag = 1
        break

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
list_a = []

for i in range(0,3):
    list_a.append(N[i])

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

Submission status: Accepted

Solution code:
N = int(input())

c = str(N)
for i in c:
	if i == '7':
		print('Yes')
		exit()
	
print('No')

Submission status: Accepted

Solution code:
lists = [x for x in str(input())]
print("Yes" if '7' in lists else 'No')

Submission status: Accepted

Solution code:
n = int(input())
jud = False
while n>0:
	m = n % 10
	if m == 7:
		jud = True
	n //= 10
if jud:
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
import sys
n=input()
for i in range(3):
  if n[i]=='7':
    print('Yes')
    sys.exit()
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:
# -*- coding: utf-8 -*-

s = input()

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

Submission status: Accepted

Solution code:
import re
input_line = input()

if re.search('7',input_line):
  print('Yes')
else:
  print("No")

Submission status: Accepted

Solution code:
N = input()
ans = False
for n in N:
    if n == "7":
        ans = True
if ans:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
readline = sys.stdin.buffer.readline
def even(n): return 1 if n%2==0 else 0

s = readline().rstrip().decode('utf-8')
if "7" in s:
	print("Yes")
else:
	print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = [int(x) for x in list(str(input()))]

for i in N:
    if 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:
letter = input()
ans = 'No'
if('7' in letter):
    ans = 'Yes'
print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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



if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a = input()
b = 0
for i in a:
    i = int(i)
    if i == 7:
        b += 1
if b == 0:
    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:
# coding=UTF-8
n = input()
if "7" in n:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# from math import factorial,sqrt,ceil
# from itertools import permutations as permus
# from fractions import gcd
# from collections import deque,Counter
# from decimal import Decimal, getcontext
# # getcontext().prec = 1000
# # eps = Decimal(10) ** (-100)

# import numpy as np
# from scipy.sparse.csgraph import shortest_path, dijkstra, floyd_warshall, bellman_ford, johnson
# from scipy.sparse import csr_matrix

# strlist = "abcdefghijklmnopqrstuvwxyz"
n = input()

ans = "No"
if "7" in n:
    ans = "Yes"

print(ans)
# print(*ans)   # unpackして出力。間にスペースが入る
# for row in board:
#     print(*row,sep="")    #unpackして間にスペース入れずに出力する
# print("{:.10f}".format(ans))
# print("{:0=10d}".format(ans))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

tmp = input()

tmp2 = tmp[0]
tmp2 = tmp[1]
tmp2 = tmp[2]

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

Submission status: Accepted

Solution code:
s=list(input())

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

print('No')

Submission status: Accepted

Solution code:
s = input()

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

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

Submission status: Accepted

Solution code:
n = list(input())
if (int(n[0])-7)*(int(n[1])-7)*(int(n[2])-7)==0:
    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())
a=[]
for i in range(3):
    a.append(int(n[i]))
if 7 in a:
    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()

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


if __name__ == "__main__":
    main()

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().strip()
print('Yes' if '7' in n else 'No')

Submission status: Accepted

Solution code:
N=int(input())
a=int(N/100)
b=N%100
c=int(b/10)
d=b%10
        
if a==7 or c==7 or d==7:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

a = int(input())
b = str(a)
count = 0
for i in b:
  if i=='7':
      count = count + 1
if count>=1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()

for n in list(N):
    if n == "7":
        print("Yes")
        break
else:
    print("No")

Submission status: Accepted

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

if (n1==7) | (n2==7) | (n3==7):
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

N_list = [int(i) for i in N]

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

Submission status: Accepted

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

ans = False

for e in n:
    if e == 7:
        ans = True
        break

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import *
from heapq import *
from itertools import *
from fractions import gcd

from decimal import *
import copy
from bisect import *
import time
import sys
import math
input=lambda :sys.stdin.readline().rstrip()
sys.setrecursionlimit(10**7)
N=input()
#A,B=map(int,input().split())
#A=list(map(int,input().split()))
if "7" in N:
    print ("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

n = list(input())

for i in range(3):
	if n[i] == '7':
		print('Yes')
		sys.exit()

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:
# coding: utf-8
N = int(input())
if N // 100 == 7:
    print('Yes')
elif (N - (N // 100) * 100) // 10 == 7:
    print('Yes')
elif N % 10 == 7:
    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':
    ans = "Yes"
else:
    ans = "No"
print(ans)

Submission status: Accepted

Solution code:
N = input()

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

if int(7) in l:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n = int(input())

while n > 0:
  if n%10 == 7:
    print('Yes')
    exit()
  n //= 10
print('No')

Submission status: Accepted

Solution code:
#coding:utf-8

          
  
def main():
    n = input()
    if n[0] == '7' or n[1] == '7' or n[2] == '7':
        print('Yes')
    else:
        print('No')
        
    
        
  
if __name__ == '__main__':
    main()

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()
sn = [n[i] for i in range(len(n))]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
n = 0
if N[0] =="7":
	n += 1
if N[1] == "7":
	n +=1
if N[2] == "7":
	n += 1
 
if n > 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:
# -*- coding: utf-8 -*-
N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

def q1():
    N = list((input()))
    if N.count('7') > 0:
        print('Yes')
    else:
        print('No')

        
if __name__ == '__main__':
    q1()

Submission status: Accepted

Solution code:
def main():
  K = str(input())

  if K[0] == '7' or K[1] == '7' or K[2] == '7':
    print('Yes')
  else:
    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:
N=input()
for a in N:
    if a=="7":
        print("Yes")
        break
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
flag = -1

for i in N:
  if i == "7":
    flag = 1
    break

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#
# Written by NoKnowledgeGG @YlePhan
# ('ω')
#
#import math
#mod = 10**9+7
#import itertools
#import fractions
#import numpy as np
#mod = 10**4 + 7
"""def kiri(n,m):
  r_ = n / m
  if (r_ - (n // m)) > 0:
    return (n//m) + 1
  else:
    return (n//m)"""
 
""" n! mod m 階乗
mod = 1e9 + 7
N = 10000000
fac = [0] * N
def ini():
  fac[0] = 1 % mod
  for i in range(1,N):
    fac[i] = fac[i-1] * i % mod"""
 
"""mod = 1e9+7
N = 10000000
pw = [0] * N
def ini(c):
  pw[0] = 1 % mod
  for i in range(1,N):
    pw[i] = pw[i-1] * c % mod"""
 
"""
def YEILD():
  yield 'one'
  yield 'two'
  yield 'three'
generator = YEILD()
print(next(generator))
print(next(generator))
print(next(generator))
"""
"""def gcd_(a,b):
  if b == 0:#結局はc,0の最大公約数はcなのに
    return a
  return gcd_(a,a % b) # a = p * b + q"""
"""def extgcd(a,b,x,y):
  d = a
  if b!=0:
    d = extgcd(b,a%b,y,x)
    y -= (a//b) * x
    print(x,y)
  else:
    x = 1
    y = 0
  return d"""
 
# 最大公約数 と 最小公倍数
"""def gcd(a,b):
  if b == 0:
    return a
  return gcd(b, a % b)
def lcm(a,b):
  g = gcd(a,b)
  return (a * b) // g"""
 
# 二分探索
"""import bisect # 二分探索
print(A,bisect.bisect_left(A,4))
print(C,n - bisect.bisect_right(C,4))
print(sum(bisect.bisect_left(A,b) * (n-bisect.bisect_right(C,b)) for b in B))"""
 
# 円周率 pi
"""import math
pi_ = math.pi"""
 
# エラトステネスの篩
"""def Erato(n):
    prime = []
    is_prime = [True] * (n+1)
    p = 0
    is_prime[0] = False
    is_prime[1] = False
    for i in range(2,n+1):
      if is_prime[i] == True:
        prime.append(i)
        p += 1
        for j in range(2 * i,n+1,i):
          is_prime[j] = False
    return p"""
 
def readInts():
  return list(map(int,input().split()))
mod = 10**9 + 7
def main():
  s = list(input())
  if s.count('7'):
    print('Yes')
  else:
    print('No')
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:
import sys

n = str(input())

for i in range(3):
    if n[i] == '7':
        print("Yes")
        sys.exit()
    
print("No")

Submission status: Accepted

Solution code:
N=int(input())

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

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

Submission status: Accepted

Solution code:
N=list(input())

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

print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

cnt = 0
for i in N:
    if i in '7':
        cnt +=1

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

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

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

a = S % 10
b = (S//10) % 10
c = (S//100) % 10

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

else:
    print('No')

Submission status: Accepted

Solution code:
i = list(map(str, input()))

if "7" in i:
  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:
# coding: utf-8
N = input().rstrip()
for c in N:
    if c == "7":
        print("Yes")
        quit()

print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
from collections import deque
d=deque(input())
if "7" in d:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n = str(input())

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

Submission status: Accepted

Solution code:
n = list(input())

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

Submission status: Accepted

Solution code:
S = input()
S = set([s for s in S])
if '7' in S:
  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:
n = input()
for i in range(len(n)):
    if n[i] == "7":
        print("Yes")
        exit()
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:
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:
import sys
# 再起回数上限変更
# sys.setrecursionlimit(1000000)

S = input()
for s in S:
    if s == '7':
        print('Yes')
        sys.exit()
print('No')

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
n = input()
flag = False
for i in n:
    if i == "7":
        flag = True
        break

if flag == True:
    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
from math import sqrt
from collections import Counter, defaultdict, deque

input = sys.stdin.readline
sys.setrecursionlimit(10 ** 6)


def I():
    return int(input())


def MI():
    return map(int, input().split())


def LI():
    return list(MI())


def LIN(n: int):
    return [I() for _ in range(n)]


inf = float("inf")
mod = 10 ** 9 + 7


def main():
    s = input()
    for n in s:
        if n == "7":
            print("Yes")
            exit()
    print("No")
    pass


if __name__ == "__main__":
    main()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
import collections
from collections import deque
import heapq
n = int(input())
#n, k = map(int, sys.stdin.readline().split())
#s = input()
#a = list(map(int, sys.stdin.readline().split()))

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

print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c = input()
if int(a)==7:
  print ("Yes")
elif int(b)==7:
  print("Yes")
elif int(c)==7:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n=str(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 = list(input())

for n in N:
    if n == '7':
        print('Yes')
        exit()

print('No')

Submission status: Accepted

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

for c in N:
    if c == '7':
        print('Yes')
        exit()

print('No')

Submission status: Accepted

Solution code:
import sys
int1 = lambda x: int(x) - 1
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(500000)

N = int(read())
str_n = str(N)
for c in list(str_n):
    if c == '7':
        print('Yes')
        sys.exit()

print("No")

Submission status: Accepted

Solution code:

x=input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    N = str(input())
    ans = 'No'

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

    return

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

Submission status: Accepted

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

q1()

Submission status: Accepted

Solution code:
N=input()
cnt=0
for i in N:
    if i == "7":
        cnt+=1

if cnt >= 1:
    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 = str(input())
if (A[0] == str(7))  or (A[1] == str(7)) or (A[2] == str(7)):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N=int(input())

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

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 = str(input())
flag = 0

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

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

Submission status: Accepted

Solution code:
#JMD
#Nagendra Jha-4096

 
import sys
import math

#import fractions
#import numpy
 
###File Operations###
fileoperation=0
if(fileoperation):
    orig_stdout = sys.stdout
    orig_stdin = sys.stdin
    inputfile = open('W:/Competitive Programming/input.txt', 'r')
    outputfile = open('W:/Competitive Programming/output.txt', 'w')
    sys.stdin = inputfile
    sys.stdout = outputfile

###Defines...###
mod=1000000007
 
###FUF's...###
def nospace(l):
    ans=''.join(str(i) for i in l)
    return ans
 
 
 
##### Main ####
t=1
for tt in range(t):
    n=str(input())
    if '7' in n:
        print("Yes")
    else:
        print("No")
    #n,k,s= map(int, sys.stdin.readline().split(' '))
    #a=list(map(int,sys.stdin.readline().split(' ')))
    
    
#####File Operations#####
if(fileoperation):
    sys.stdout = orig_stdout
    sys.stdin = orig_stdin
    inputfile.close()
    outputfile.close()

Submission status: Accepted

Solution code:
n = int(input())

p = n//100
q = (n-p*100)//10
r = (n-p*100-q*10)

ans = 'Yes' if p==7 or q==7 or r==7 else 'No'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
b = 0
for i in n:
    if i == '7':
        b= 1
        break

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

Submission status: Accepted

Solution code:
#https://atcoder.jp/contests/abc162/tasks/abc162_a
# -*- coding: utf-8 -*-
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())
h = n //100
j = (n-100*h) //10
i = n-100*h-10*j
if h == 7 or j == 7 or i == 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:
x=input()
for i in range(0,len(x)):
  if(x[i] == '7'):
    print('Yes')
    break
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = str(input())
flag = 0
for n in num:
	if n == '7':
		flag = flag + 1
	else:
		continue
if flag > 0:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
s = input()
ans = "No"

for i in s:
    if i == "7":
        ans = "Yes"

print(ans)

Submission status: Accepted

Solution code:
N = input()
if N.find('7') != -1:
    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:
K = int(input())
flag = 0

for i in range(3):
    if K % 10 == 7:
        flag = 1
    K = int(K/10)
    
if flag:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys
readline = sys.stdin.readline
 
 
N = 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:
import sys

# 文字列を一つ入力
s = input()

for i in range(3):
    if int(s[i]) == 7:
        print("Yes")
        sys.exit()

print("No")

Submission status: Accepted

Solution code:
N = int(input())

a = int(N/100)
b = int((N-a*100)/10)
c = int(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 numpy as np


##get int
first_input = list(map(lambda x:int(x), input().split(" ")))
#second_input = list(map(lambda x:int(x), input().split(" ")))

##get float
#first_input = list(map(lambda x:float(x), input().split(" ")))
#second_input = list(map(lambda x:float(x), input().split(" ")))

##get string
#first_input = input().split(" ")

N = first_input[0]

hundred_num = N//100
ten_num = (N-hundred_num*100)//10
one_num = (N-hundred_num*100-ten_num*10)

if hundred_num==7 or ten_num==7 or one_num==7:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# 入力を1文字ずつのリストにする
text = list(input())

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

Submission status: Accepted

Solution code:
N = list(input().rstrip())

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
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:
def main():
    s = input()
    for c in s:
        if c == '7':
            return 'Yes'
    return 'No'


if __name__ == '__main__':
    print(main())

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
import math


n = int(input())
#tmp = input().split()
#n,m,k = list(map(lambda a: int(a), tmp))

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

Submission status: Accepted

Solution code:
i = input()

if i.count("7") >= 1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

result = 'No'
for nn in n:
    if nn == '7':
        result = 'Yes'
        break
    
print(result)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
test = str(n) 
cout=0
for i in range(3):
    if test[i] == '7':
        print("Yes")
        break
    elif cout == 2:
        print("No")
    
    else:
        cout+=1

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

for i in s:
  if i == '7':
    print('Yes')
    sys.exit()
    
print('No')

Submission status: Accepted

Solution code:


def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    s=input()
    if "7" in s:
        print("Yes")
    else:
        print("No")

main()

Submission status: Accepted

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