Problem:


Score : 100 points

Problem Statement

Given is a three-digit integer N. Does N contain the digit 7?

If so, print Yes; otherwise, print No.

Constraints

100 \leq N \leq 999

Input

Input is given from Standard Input in the following format:

N

Output

If N contains the digit 7, print Yes; otherwise, print No.

Sample Input 1

117

Sample Output 1

Yes

117 contains 7 as its last digit.

Sample Input 2

123

Sample Output 2

No

123 does not contain the digit 7.

Sample Input 3

777

Sample Output 3

Yes



Sample input:
117


Sample output:
Yes

Submission status: Accepted

Solution code:
n=input()
result=''
for s in n:
    if s=='7':
        result+='Yes'
        break
    else:
        continue
if result=='Yes':
    print(result)
else:
    print('No')

Submission status: Accepted

Solution code:
number = input()

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

Submission status: Accepted

Solution code:
from sys import stdin

N = stdin.readline().rstrip()
print('Yes' if '7' in N else 'No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = list(map(int,input()))
for i in range(3):
    if(N[i]== 7):
        print('Yes')
        break
    elif(i == 2 ):
        print('No')

Submission status: Accepted

Solution code:
N = input()
if '7'==N[0] or '7'==N[1] or '7'==N[2]:
  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:
#! /usr/bin/env python3

from fractions import gcd
from collections import Counter, deque, defaultdict
from heapq import heappush, heappop, heappushpop, heapify, heapreplace, merge
from bisect import bisect_left, bisect_right, bisect, insort_left, insort_right, insort
from itertools import accumulate, product, permutations, combinations, combinations_with_replacement

S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys
sys.setrecursionlimit(10**7)
from pprint import pprint as pp
from pprint import pformat as pf
# @pysnooper.snoop()
#import pysnooper # debug

import math
#from sortedcontainers import SortedList, SortedDict, SortedSet # no in atcoder
import bisect


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

    #print('\33[32m' + 'end' + '\033[0m') # debug

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=list(input())
flag=0
for i in n:
    if i=="7":
        flag+=1
if flag>0:
    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:

def main():

    N = input()

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

s = str(N)

array = list(map(int, s))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import os
import bisect, collections, copy, itertools, math, string
def I(): return int(input())
def S(): return input()
def LI(): return list(map(int, input().split()))
def LS(): return list(input().split())

def solve():
	N = S()

	flag = False
	for n in N:
		num = int(n)
		if num == 7:
			flag = True

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


if __name__ == '__main__':
	solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

a = int(n / 100)

b = int(n % 100 / 10)
c = int(n % 10)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**7)
input = lambda: sys.stdin.readline().strip()

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

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:
# -*- coding: utf-8 -*-


def main():
    n = input()

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
#ABC162a
n = input()
n = list(n)
count = 0

for i in n:
    s = int(i)
    if s == 7:
        count += 1
    else:
        pass

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

Submission status: Accepted

Solution code:
import math

n=str(input())

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

Submission status: Accepted

Solution code:
def lucky(N):
  result = "No"
  if N[0:1] == "7" or N[1:2] == "7" or N[2:] == "7":
    result = "Yes"
    
  return result

if __name__ == "__main__":
  N = input()
  print(lucky(N))

Submission status: Accepted

Solution code:
s = list(input())

if '7' in s:
  print('Yes')
else:
  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()
print('Yes') if '7' in s 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 sys import stdin


def main():
    n = stdin.readline()[:-1]
    print('Yes') if n.count('7') > 0 else print('No')


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
val = input()

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

Submission status: Accepted

Solution code:
n = str(input())

i = 0
c = 0

while i < 3:
    if n[i] == '7':
        c = 1
        break
    else:
        i += 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=list(input())
if  a=="7":
    print("Yes")
elif b=="7":
    print("Yes")
elif 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:
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:
print('Yes' if '7' in input() else 'No')
#thanks for submitting

Submission status: Accepted

Solution code:
import math
N = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# A - Lucky 7

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Wed May  6 01:01:41 2020

@author: shinba
"""
N = input()

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

Submission status: Accepted

Solution code:

N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()
print('Yes' if n.count('7')>=1 else '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()
han = False
for i in N:
    if i == "7":
        han = True
if han == True:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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


def main():
    N = input()
    for i in list(N):
        if i == '7':
            print('Yes')
            return
    print('No')


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

for i in n:
    if int(i) == 7:
        print('Yes')
        exit(0)


print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,copy,functools
import time,random

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
mod2 = 998244353
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 LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)
def pe(s): return print(str(s), file=sys.stderr)
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():
    s = S()
    if "7" in s:
        return 'Yes'

    return "No"


print(main())

Submission status: Accepted

Solution code:
N=input()
a=list(N)

b=True
for i in range(3):
    if int(a[i])==7:
        print("Yes")
        b=False
        break
if b==True:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

ans = "No"
for s in N:
  if s == "7":
    ans = "Yes"

print(ans)

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:
import sys
sys.setrecursionlimit(10 ** 6)
# input = sys.stdin.readline    ####
int1 = lambda x: int(x) - 1
def II(): return int(input())

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

def LI(): return list(map(int, input().split()))
def LI1(): return list(map(int1, input().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]

INF = float('inf')

def solve():
    n = input()
    if '7' in n:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    solve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import queue
from collections import defaultdict
 
def readInt():
	return int(input())
def readInts():
	return list(map(int, input().split()))
def readChar():
	return input()
def readChars():
	return input().split()
def factorization(n):
	res = []
	if n%2==0:
		res.append(2)
	for i in range(3,math.floor(n//2)+1,2):
		if n%i==0:
			c = 0
			for j in res:
				if i%j==0:
					c=1
			if c==0:
				res.append(i)
	return res
def fact2(n):
	p = factorization(n)
	res = []
	for i in p:
		c=0
		z=n
		while 1:
			if z%i==0:
				c+=1
				z/=i
			else:
				break
		res.append([i,c])
	return res
def fact(n):#階乗
	ans = 1
	m=n
	for _i in range(n-1):
		ans*=m
		m-=1
	return ans
def comb(n,r):#コンビネーション
	l = min(r,n-r)
	m=n
	u=1
	for _i in range(l):
		u*=m
		m-=1
	return u//fact(l)
def printQueue(q):
	r=q
	ans=[0]*r.qsize()
	for i in range(r.qsize()-1,-1,-1):
		ans[i] = r.get()
	print(ans)

N = readInt()

s = list(str(N))

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(3):
    if N % 10 == 7:
        print('Yes')
        break
    else:
        N //= 10
        continue
    break
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()
a=int(n)%10
b=((int(n)-a)/10)%10
f="No"
if a==7:
    f="Yes"
if b==7:
    f="Yes"
if 700<=int(n)<800:
    f="Yes"
print(f)

Submission status: Accepted

Solution code:
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop
from itertools import permutations, accumulate, combinations
from math import sqrt, ceil, floor
from bisect import bisect_left, bisect_right
from copy import deepcopy
from operator import itemgetter
from fractions import gcd
import sys
def I(): return int(input())  # '123' -> 123
def Is(): return map(int, input().split())  # '123 456' -> 123, 456
def LI(): return list(map(int, input().split()))  # '123 456' -> [123, 456]
def TI(): return tuple(map(int, input().split()))  # '123 456' -> (123, 456)
def IR(n): return [I() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def TIR(n): return [TI() for _ in range(n)]
def S(): return input()
def Ss(): return input().split()  # 'aa bb' -> 'aa','bb' or ['aa','bb']
def LS(): return list(input())  # 'abc123' -> ['a','b','c','1','2','3']
def SR(n): return [S() for _ in range(n)]
def SsR(n): return [Ss() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
sys.setrecursionlimit(1000000)
MOD = 1000000007
INF = float('inf')

s = LS()
if "7" in s:
    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:
def main():

    N = input()
    if '7' in N: return "Yes"
    return "No"
if __name__ == '__main__':
    print(main())

Submission status: Accepted

Solution code:
#import math
#input()
n=str(input())
#map(int,input().split())
#list(map(int,input().split()))
#[input() for _ in range()]

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

Submission status: Accepted

Solution code:
ok = False
s = str(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:
# coding: utf-8
import sys

S = input()
for a in S:
    if a == "7":
        print("Yes")
        sys.exit(0)
print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
if n//100==7:
  print('Yes')
elif (n-100*(n//100))//10==7:
  print('Yes')
elif n-100*(n//100)-((n-100*(n//100))//10)*10==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=int(input())

if N%100%10==7 or 70<=N%100<80 or 700<=N<800:
    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()

cnt = 0
for i in range(3):
    if int(N[i]) == 7:
        print('Yes')
        cnt += 1
        break

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

Submission status: Accepted

Solution code:
s = list(input())

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
flag = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
n=input()
#print(n)

for i in n:
    if 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()
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 = int(input())
res = 'No'
if N // 100 == 7 or (N - N // 100 * 100 ) // 10 == 7 or (N - N // 10 * 10) == 7:
  res = 'Yes'

print(res)

Submission status: Accepted

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

S_list = list(S)

ans = 0
for i in range(len(S_list)):
  if(S_list[i] == "7"):
    ans = 7
  else:
    ans = ans
    
    
    
if(ans == 7):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = input()
print("Yes" if N.find("7") >= 0 else "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:
def main():
    N = input()
    if "7" in N:
        print("Yes")
    else:
        print("No")
main()

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

Submission status: Accepted

Solution code:
N = input()
if "7" in str(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:
#coding=utf-8
if "7" in str(input()) :
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
if input().count('7'):
        print("Yes")

else:
    print("No")

Submission status: Accepted

Solution code:
n = list(input())
if int(n[0]) == 7:
    print("Yes")
else:
    if int(n[1]) == 7:
        print("Yes")
    else:
        if int(n[2]) == 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:
def main():
    n = int(input())
    for i in range(3):
        if n%10 == 7:
            print("Yes")
            return
        n //= 10
    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:
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 N[0] == '7' or N[1] == '7' or N[2] == '7':
    print('Yes')

else:
    print('No')

Submission status: Accepted

Solution code:
n=input()
for c in n:
 if c=='7': #与えられた数に7が1つでも含まれていればYesを返す
   print('Yes')
   break
else: #1つも含まれていなければNoを返す
 print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC162A https://atcoder.jp/contests/abc162/tasks/abc162_a

n=input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import re
# input
n = input()
if (re.match('.*7.*', 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:
print("YNeos"[not'7'in input()::2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=input()
M=N.replace("7","")
if len(N)!=len(M):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
found = False
for i in s:
  if i=='7':
    found = True
    break
if found:
  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()

for i in n:
    if i == "7":
        print("Yes")
        exit()

print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#-*- coding: utf-8 -*-
s = input()
print("Yes" if s[0]=='7' or s[1]=='7' or s[2]=='7' 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:
s = input()
if "7" in s:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
n = input()

if n.count("7") > 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
# sys.setrecursionlimit(100000)


class Solver(object):
    def __init__(self):
        pass

    def solve(self):
        pass


def main():
    N = input().strip()
    if "7" in N:
        return "Yes"
    else:
        return "No"


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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
# sys.setrecursionlimit(100000)

def main():
    N = input().strip()
    if "7" in N:
        return "Yes"
    else:
        return "No"


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
X = 0

for i in range(3):
    if int(S[i]) == 7:
        X += 1
if X == 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:
import math

def read_int():
    return int(input().strip())


def read_ints():
    return list(map(int, input().strip().split(' ')))


def solve():
    return 'Yes' if '7' in input().strip() else 'No'


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
n = int(N)
if 100 <= n <= 999 :
    if '7' in 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')
        break
    else:
        if i == 2:
            print('No')