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=int(input())
for i in range(3):
    if N%10==7:
        print ('Yes')
        break
    N=N//10
if N==0:
    print ('No')

Submission status: Accepted

Solution code:

def main():
    # -*- coding: utf-8 -*-
    # 整数の入力
    # a = int(input())
    # スペース区切りの整数の入力
    # b, c = map(int, input().split())
    # b, c = map(int, input())

    # # 文字列の入力
    a = input()
    # 出力
    # print("{} {}".format(a+b+c, s))

    # mul = a

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


if __name__ == '__main__':
    # main('123')
    main()

Submission status: Accepted

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

if flag:
  print('No')

Submission status: Accepted

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

cnt = 0
for i in range(0, len(n)):
    if int(n[i]) == 7:
        print("Yes")
        cnt += 1
        break
if cnt == 0:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
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()
  
print("Yes" if "7" in str(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:
str = input()
length = len(str)
count = 0
for i in range(0,length):
    if str[i] == "7":
        count = count+1
if count != 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

def main():
    N = input()
    if int(N[0]) == 7 or int(N[1]) == 7 or int(N[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=str(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())

nList = list(N)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())
flag = False
for number in s:
  if number == "7":
    flag = True
    break
  
if flag == True:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
a1 = N % 10
a2 = ((N % 100) - a1) / 10
a3 = N // 100
if a1 == 7 or a2 == 7 or a3 ==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 = int(input())
flag = 0

while N > 0:
    n = N%10
    # print(n)
    if n == 7:
        print("Yes")
        flag = 1
        break

    N = N//10

if flag == 0:
    print("No")

Submission status: Accepted

Solution code:
a = input()

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

Submission status: Accepted

Solution code:
num = input()
if num.find('7') >= 0:
    print('Yes')
    exit()
print('No')

Submission status: Accepted

Solution code:
import sys, os
if __name__=="__main__":
  n = str(input())
  if "7" in n:
    print("Yes")
  else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
f = 0

for i in range(len(n)):
 if n[i] == "7":
  f = 1

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

Submission status: Accepted

Solution code:
N = str(input())

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

Submission status: Accepted

Solution code:
import sys
import math
import bisect

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
chars = str(input())
n = 0

for char in chars:
	if int(char) == 7:
		n = 1

	if n != 0:
		break

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

Submission status: Accepted

Solution code:
t=input()
n=t[0]
m=t[1]
o=t[2]

if n != "7" and m != "7" and o !="7":
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
import re
n = input()
if re.search('7',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[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()
x=0
for a in n:
  if(a=="7"):
    x=1
if(x==1):
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = eval(input())
a = str(N)
k=[]
for i in a:
    if i == "7":
        k.append(i)
if len(k) > 0:
    print ("Yes")
else:
    print ("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input())
a = '7'
if a 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:
#!/usr/bin/env python3
import sys

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


def solve(N: int):
    print(YES if (N//100 == 7 or (N//10)%10 == 7 or N%10 == 7) else NO)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    solve(N)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# coding:utf-8

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import re
n=input()
m = re.search(r'7', n)

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

Submission status: Accepted

Solution code:
N = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=input()
n=list(N)
x= '7' in n
if x is True:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())
x = False
for i in N:
    i = int(i)
    if i == 7:
        x = True
if x:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
data = input()
#print(data)
res = "No"
for i in range(len(data)):
  if data[i]=="7":
    res = "Yes"
    break
print(res)

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    n = input()

    if "7" in n:
        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()
for i in range(3):
    if N[i]=="7":
        print("Yes")
        exit()
print("No")

Submission status: Accepted

Solution code:
n=input()
str(n)
ans=0
for i in range(3):
  if int(n[i])==7:
    ans=7

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

Submission status: Accepted

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

if all(i != "7" for i in S):
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input().strip()
l = len(N)
n = "7" in N

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

Submission status: Accepted

Solution code:
n = int(input())

yes = False
while n:
    digit = n % 10
    n = n // 10
    if digit == 7:
        yes = True


print('Yes') if 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:
def main():
    import math
    import sys

    n = str(input())
    f = 0
    for a in n:
        if a == "7":
            print("Yes")
            f = 1
            break
        else:
            continue
    if f == 0:
        print("No")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys

n = input()

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

print('No')

Submission status: Accepted

Solution code:
i = input()

i = int(i)

flg = False

while i != 0:
  check = i % 10
  if check == 7:
    flg = True
    break
  i = int(i / 10)

check = i % 10
if check == 7:
	flg = True

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

Submission status: Accepted

Solution code:
S = input()

x = False

for i in S:
    if(i=='7'):
        x = True

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
import math
import sys

def main():
    
    N = input()

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

    return

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import sys
import math
from collections import defaultdict
from bisect import bisect_left, bisect_right

sys.setrecursionlimit(10**7)
def input():
    return sys.stdin.readline()[:-1]

mod = 10**9 + 7

def I(): return int(input())
def LI(): return list(map(int, input().split()))
def LIR(row,col):
    if row <= 0:
        return [[] for _ in range(col)]
    elif col == 1:
        return [I() for _ in range(row)]
    else:
        read_all = [LI() for _ in range(row)]
        return map(list, zip(*read_all))

#################

N = I()
N = str(N)
for i in range(3):
    if N[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:
list = list(str(input()))

YN_flag = 0

for i in list:
    if i == "7":
        print("Yes")
        YN_flag = 1
        break

if YN_flag == 0:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# for #!/usr/bin/env python
import os
import sys
from io import BytesIO, IOBase


def main():
	# for t in range(int(input())):
		n = input()
		if n.count("7")>0:
			print("Yes")
		else:
			print("No")
		
		


# region fastio

BUFSIZE = 8192


class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = "x" in file.mode or "r" not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b"\n") + (not b)
			ptr = self.buffer.tell()
			self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			self.buffer.truncate(0), self.buffer.seek(0)


class IOWrapper(IOBase):
	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode("ascii"))
		self.read = lambda: self.buffer.read().decode("ascii")
		self.readline = lambda: self.buffer.readline().decode("ascii")


sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)
input = lambda: sys.stdin.readline().rstrip("\r\n")

# endregion

if __name__ == "__main__":
	main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
isSeven = False


for i in n:
  if i == "7":
    isSeven = True
if(isSeven):
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

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

if F >= 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:
n = input()
l = []
for i in range(3):
    l.append(n[i])
if '7' in l:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
str = input()
try:
    target = '7'
    if target in str:
        print('Yes')
    else:
        print('No')
except EOFError:
    pass

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=int(input())
f=0
while n>0:
      c=n%10
      if  c==7:
            f=1
            print("Yes")
            break
      n=int(n/10)
if f==0:
      print("No")

Submission status: Accepted

Solution code:
t=list(input())

if t[0]=='7' or t[1]=='7' or t[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()
list_N=list(N)
ans='No'
for i in range(3):
  if list_N[i]=='7':
    ans='Yes'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
a = input() 

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
x = int(input())
import math
a = int(math.floor(x/100))
b = int(math.floor((x-100*a)/10))
c = int(math.floor((x-100*a-10*b)))

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

Submission status: Accepted

Solution code:
num = int(input())
list = list(str(num))
count = 0

for i in range(3):
  if list[i] == "7":
    print("Yes")
    break
  else:
    count += 1

if count == 3:
  print("No")
else:
  None

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = int(input())
count = 0
tenwari = n%10
baiwari = n%100
ichi = tenwari
jyu = (baiwari-tenwari)//10
hyaku = (n-jyu*10-ichi)//100

if ichi != 7:
  count = count + 1
if jyu != 7:
  count = count + 1
if hyaku != 7:
  count = count + 1
  
if count == 3:
  print('No')
else:
  print('Yes')

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()
a = 0
for i in range(len(N)):
  if N[i] == "7":
    a = 1

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

Submission status: Accepted

Solution code:
n = int(input())
first = n // 100
second = (n % 100) // 10
third = (n % 10)

if (first == 7 or second == 7 or third == 7):
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=int(input())

s = str(a)
l = len(str(a))
c = 0
for i in range(l):
    if s[i] == "7":
        c = 1
        break
        
if c == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
vv = int(input())

if vv <= 999 and vv >= 100:
    vvvv = list(str(vv))


    ccc = "7" in vvvv

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

Submission status: Accepted

Solution code:
#A

n = input()

l = set(list(n))
if "7" in l:
    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:
import sys

N = str(input())

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

print('No')

Submission status: Accepted

Solution code:
N = input()
# N = N[0]
# N = np.array(list(map(int, input().split())))
# print(N, K)
# print(N)
 
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())

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=input()
a=x[0]
b=x[1]
c=x[2]
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(input())
for i in n:
  if int(i) == 7:
    print('Yes')
    exit()
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:
if __name__ == '__main__':
    N = input()
    print('Yes' if '7' in N else 'No')

Submission status: Accepted

Solution code:
n = str(input())

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

Submission status: Accepted

Solution code:
numbers = str(input())
ans = 0
for i in range(3):
	if numbers[i] == "7":
  		ans =1
if ans == 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:
x=int(input())

x1=x//100
x2=(x%100)//10
x3=x%10

if(x1==7 or x2==7 or x3==7):
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

hyaku = N // 100
resi = N - (100 * hyaku)
ju = resi // 10
iti = resi % 10

n = hyaku * ju * iti

if not hyaku == 7:
  if not ju == 7:
    if not iti == 7:
      print('No')
    else:
      print('Yes')
  else:
    print('Yes')
else:
  print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np
#N=map(int, input().split())
N=int(input())
a=N//100
b=(N-a*100)//10
c=N-a*100-b*10
if (a%7==0 and a!=0) or (b%7==0 and b!=0) or (c%7==0 and c!=0):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a=(input())

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

Submission status: Accepted

Solution code:
def main(): # A162
    N = int(input())
    NUM = list(str(N))
    NUM = list(map(int,NUM))
    #A = list(map(int, input().split()))  # [1,2,3,4,5]
    for i in NUM:
        if int(i) == 7:
            print("Yes")
            exit(0)
    print("No")
    
main()

Submission status: Accepted

Solution code:
num = int(input())

hund = num // int(100) 
num_tens = num % 100 
tens = num_tens // 10 
ones = num_tens % 10

if (hund == 7 or  tens ==7 or ones == 7):
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
s=input()
a=[int(c) for c in s]
flag=False
for i in a:
  if i==7:
    flag=True
if flag==True:
  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:
s = input()
if ("7" in s)== True:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
x = list(input())
j = 0
for i in x:
  if int(i) == 7:
    j = 1

if j == 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=int(input())
a=int(n//100)
b=int(n%10)
c=int((n-100*a-b)//10)
#print(c)
ans=0
if a==7:
  ans+=1
if b==7:
  ans+=1
if c==7:
  ans+=1
if ans==0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
import sys; sys.setrecursionlimit(2147483647); input = sys.stdin.readline
from math import floor, ceil, sqrt, factorial, log
from collections import Counter, defaultdict, deque
from operator import itemgetter
INF = float('inf'); MOD = 10**9+7
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(MI())
def LIR(n): return [LI() for i in range(n)]
def IS(): return input().rstrip()

def main():
    N = I()
    if '7' in str(N): print('Yes')
    else: print('No')
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    n = str(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:
S=list(input())
if S[0]=="7" or S[1]=="7" or S[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()
#print(n[1])
if n[0] =='7' or n[1] == '7' or n[2] == '7':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys
stdin = sys.stdin
sys.setrecursionlimit(10 ** 7)

def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
# 入力全てを整数に変換したものの配列を受け取る
def LI(): return list(map(int, sys.stdin.readline().split()))
# 入力全てを整数に変換して1引いたものの配列を受け取る
def LLI(rows_number): return [LI() for _ in range(rows_number)]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# import sys
# sys.setrecursionlimit(10 ** 6)
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 LLI(rows_number): return [LI() for _ in range(rows_number)]


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



if __name__ == '__main__':
    solve()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

a = N%10
b = (N//10)%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=str(input())
ans=0
for i in range(0,len(n)):
  if n[i]=='7':
    ans=1
if ans==1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

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 = list(map(int, input()))
flg = 0
if n[0]==7:
  flg = 1
if n[1]==7:
  flg = 1
if n[2]==7:
  flg = 1

if flg == 1:
  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:
#!/usr/bin/env python3
import sys

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


def solve(N: int):
    S = str(N)
    if S[0] == "7" or S[1] == "7" or S[2] == "7":
        print(YES)
    else:
        print(NO)
    return


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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

X = str(N)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())

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

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