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:
from sys import stdin
N = stdin.readline().rstrip()
if '7' in N:
  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:
#A
N = input()
Nlist = list(N)
ans = 'No'
for k in Nlist:
    if k == '7':
        ans = 'Yes'
    else:
        pass
print(ans)

Submission status: Accepted

Solution code:
def check_has_7(i):
    for n in range(len(str(i))):
        if(str(i)[n] == '7'):
            return "Yes"
    return "No"

a = int(input())
print(format(check_has_7(a)))

Submission status: Accepted

Solution code:
# 入力N:3桁の整数
N = input()
print("Yes" if str(N).count("7") != 0 else "No")

Submission status: Accepted

Solution code:
A = input()
A_list = list(A)
A_bool = "7" in A_list
if A_bool == True:
  print("Yes")
else: 
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def func(n):
  if "7" in n:
    return "Yes"
  else:
    return "No"

n = input()

print(func(n))

Submission status: Accepted

Solution code:
from sys import stdin

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
a = N - 7
b = N//10 - 7
c = N//100 - 7
if a % 10 == 0 or b % 10 == 0 or c % 10 == 0:
    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:
from sys import stdin

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/python3

n = int(input())

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

Submission status: Accepted

Solution code:
N = input('')
N0, N1, N2 = list(N)[0], list(N)[1], list(N)[2] 

if N0== '7' or N1=='7' or N2 == '7':
  print("Yes")
  
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
yes_or_no = {
    True: "Yes",
    False: "No"
}

num = input()

print(yes_or_no["7" in num])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=list(input())

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

Submission status: Accepted

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

from sys import stdin, stderr

def main():
   S = stdin.readline()
   print('Yes' if '7' in S else 'No')

   return 0

if __name__ == '__main__': main()

Submission status: Accepted

Solution code:
N=int(input())
class Lucky:
    def __init__(self,N):
        self.N=N
        self.N_1=int(N/100)
        self.N_2=int((N - 100*self.N_1)/10)
        self.N_3=int((N-100*self.N_1-10*self.N_2))
        
    def Lucky_7(self):
        if self.N_1==7 or self.N_2==7 or self.N_3==7:
            return print("Yes")
        else:
            return print('No')

Lucky(N).Lucky_7()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input()) 

res="No" 

for i in range(3):

  if n%10==7:

    res="Yes"

  n//=10

print (res)

Submission status: Accepted

Solution code:
n=input()
if "7" in n :
    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=int(input())
A=N//100
M=N%100
 
B=M//10
C=M%10
 
if 7 in [A,B,C]:
    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:
from sys import stdin, stdout
rl = lambda: stdin.readline()
rll = lambda: stdin.readline().split()

def main():
	N = int(rl())
	ans = 0
	while N:
		N, dig = divmod(N, 10)
		if dig == 7:
			ans = 1
			break
	if ans:
		stdout.write("Yes");stdout.write("\n")
	else:
		stdout.write("No");stdout.write("\n")
	stdout.close()

if __name__ == "__main__":
	main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

else:
    print("No")

Submission status: Accepted

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

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

else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
found = False
for c in n:
  if c == '7':
    found = True
    print("Yes")
    break
if not found:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())
flag = False
for i in range(3):
    if N[i] == "7":
        flag = True
    
if flag:    
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

M = str(N)

L = list(map(int, M))

if L[0] == 7:
    print("Yes")
    
elif L[1] == 7:
    print("Yes")

elif L[2] == 7:
    print("Yes")

else:
    print("No")

Submission status: Accepted

Solution code:
# coding: utf-8
n = input()
for i in n:
    if i == '7':
        print("Yes")
        quit()
print("No")

Submission status: Accepted

Solution code:
N=int(input())
N_1=int(N/100)
N_2=int((N - 100*N_1)/10)
N_3=int((N-100*N_1-10*N_2))
        

if N_1==7 or N_2==7 or N_3==7:
    print("Yes")
else:
    print('No')

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

print('Yes') if '7' in str(n) 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:
def main():
    N = input()
    for i in N:
        if int(i) == 7:
            print("Yes")
            quit(0)
    print("No")

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
from sys import stdin


if __name__ == "__main__":
    _in = [_.rstrip() for _ in stdin.readlines()]
    N = _in[0] # type:str
    # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
    TF = 'Yes' if '7' in N else 'No'
    # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    print(TF)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

b = 0

for i in range(len(N)):
  if N[i] == "7":
    b = 1
    
if b:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
from sys import stdin


def out_ctrl(s):
    print(s)

def main(N_tolist):
    for n in N_tolist:
        if n == '7':
            return 'Yes'
    else:
        return 'No'


if __name__ == "__main__":
    _in = [_.rstrip() for _ in stdin.readlines()]
    N = _in[0] # type:str
    # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
    N_tolist = list(N)
    TF = main(N_tolist)
    # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    print(TF)

Submission status: Accepted

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

main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
flag = False
for c in n:
    if c == '7':
        flag = True
        break
if flag:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
#a,b=map(int,input().split())
#l=list(map(int,input().split()))
#l=[list(map(int,input().split())) for i in range(n)]

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

Submission status: Accepted

Solution code:
import math
from functools import reduce
from collections import deque
import sys
sys.setrecursionlimit(10**7)

# スペース区切りの入力を読み込んで数値リストにして返します。
def get_nums_l():
    return [ int(s) for s in input().split(" ")]

# 改行区切りの入力をn行読み込んで数値リストにして返します。
def get_nums_n(n):
    return [ int(input()) for _ in range(n)]

# 改行またはスペース区切りの入力をすべて読み込んでイテレータを返します。
def get_all_int():
    return map(int, open(0).read().split())

def log(*args):
    print("DEBUG:", *args, file=sys.stderr)

s = input()

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

Submission status: Accepted

Solution code:
N = list(input())

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

Submission status: Accepted

Solution code:

# -*- coding: utf-8 -*-
s=input()

flag='No'
for i in s:
    if i=='7':
        flag='Yes'
        break
print(flag)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

#output
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().strip()
print("Yes") if n.count("7") else print("No")

Submission status: Accepted

Solution code:
text = input()
if "7" in text:
  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 = list(input())
for i in range(len(N)):
  if int(N[i]) == 7:
    print("Yes")
    exit()
print("No")

Submission status: Accepted

Solution code:
import re
n = input()

if re.findall('[7]', n):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
input_string = input()
yes = 0
for n in input_string:
  if n == '7':
    print('Yes')
    yes = 1
    break
if not yes:
  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 i==str(7):
    print("Yes")
    exit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

n = input()

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

Submission status: Accepted

Solution code:
r = input()
n = int(r)
if n // 100 == 7:
    print('Yes')
elif n // 10 - n // 100 * 10 == 7:
    print('Yes')
elif n % 10 == 7:
    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:
flag=0
n=input()
for i in range(len(n)):
    if n[i]=='7':
        print("Yes")
        flag=1 
        break 
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:
N=input()
l = [int(x) for x in list(str(N))]
if l[0]==7 or l[1]==7 or l[2]==7:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
print('No') if input().find('7') == -1 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:
a = input()
flag = False

for i in a:
    if i == "7":
        print("Yes")
        flag = True
        break

if not flag:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# A
n = input()

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

Submission status: Accepted

Solution code:
N = input()

flag = 0
for i in range(3):
  if N[i] == '7':
    flag += 1
    
if flag == 0:
  print('No')
    
else:
  print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
li=list(input())
if li[0]=="7" or li[1]=="7" or li[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 = int(input())
n3 = N//100
n2 = (N - n3*100)//10
n1 = N - n3*100 - n2*10
if (n3 == 7) or (n2 == 7) or (n1 == 7):
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

n = 0

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
c = 0
for letter in n:
    if letter == '7':
        c += 1
pass 

print('Yes') if c > 0 else print('No')

Submission status: Accepted

Solution code:
N = input()

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

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

Submission status: Accepted

Solution code:
N = int(input())

ans = False
for _ in range(3):
    s = N % 10
    # print(s)
    if s == 7:
        ans = True
    N //= 10

if ans:
    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 '7' in str(N):
  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:
def main():
  n=int(input())
  s=list(map(int,str(n)))
  if 7 in s:
    print('Yes')
  else:
    print('No')
main()

Submission status: Accepted

Solution code:

n = list(input())

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


if ans==0:
    print("No")
else:
    print("Yes")
"""
n = int(input())
ans = k*(k+1)//2
"""

Submission status: Accepted

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

Submission status: Accepted

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

if n//100==7 or (n//10)%10==7 or n%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:
s=str(input())
if('7' in s):
	print("Yes")
else:
	print("No")

Submission status: Accepted

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

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 = set(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:
import sys
IS = lambda: sys.stdin.readline().rstrip()
II = lambda: int(IS())
MII = lambda: list(map(int, IS().split()))

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

Submission status: Accepted

Solution code:
import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10 ** 9 + 7
    n = str(readline().rstrip().decode('utf-8'))
    print("Yes" if n.count("7") else "No")


if __name__ == '__main__':
    solve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(2147483647)
INF=float("inf")
MOD=10**9+7 # 998244353
input=lambda:sys.stdin.readline().rstrip()
def resolve():
    print("Yes" if input().count('7') else "No")
resolve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = list(input())

print('Yes' if '7' in N 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:
#A
#入力
N=input()


#デバッグ用
def pront(*n):
    if debug==1:
        print(n)
        
debug=1#0:本番,1:デバッグ

#処理

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

Submission status: Accepted

Solution code:
n= input()

cont=0

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

Submission status: Accepted

Solution code:
N = input()
import sys
for n in N:
  if n == '7':
    print('Yes')
    sys.exit()
    
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:
a=list(map(int,list(input())))
b='No'
for i in a:
  if i==7:
    b='Yes'
    break

print(b)

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

import sys
input = sys.stdin.readline

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = int(input())
X = N
quot_100 = X//100
X= X % 100
quot_10 = X // 10
X= X % 10
quot_1 = X

if (quot_100 == 7) or (quot_10 == 7) or (quot_1 == 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:
#!/usr/bin/env python3

def main():
    n = input()
    result = False
    for c in n:
        if c == "7":
            result = True
    print("Yes" if result else "No")

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a = input()

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

Submission status: Accepted

Solution code:
N = str(input())
print("Yes") if (any(list(map(lambda x: True if x == "7" else False, N)))) else print("No")

Submission status: Accepted

Solution code:
# A - Lucky 7
if any(n == '7' for n in input()):
	print('Yes')
else:
	print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

divisor = 100
N_temp = N

there_is_seven = False
while divisor != 0.1:
    if N_temp // divisor == 7:
        there_is_seven = True
    N_temp %= divisor
    divisor /= 10

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

Submission status: Accepted

Solution code:
n = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

string = str(N)

ans = False

for s in string:
    if s == '7':
        ans = True

print('Yes' if ans is True else 'No')

Submission status: Accepted

Solution code:
if __name__ == "__main__":
  inp = str(input())
  if '7' in inp:
    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:
# A - Lucky 7
def main():
    N = input().rstrip()
    print("Yes" if "7" in N else "No")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
def contains(s):
	if '7' in s:
		return 'Yes'
	else:
		return 'No'

n = input()
print(contains(n))

Submission status: Accepted

Solution code:
a = input()
q = False
for s in a:
    if s == '7':
        print('Yes')
        q  = True
        break
if q == False:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = [int(x) for x in list(input().strip())]
if 7 in s:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

bool_ = 0
while N > 0:
    if N % 10 == 7:
        print('Yes')
        bool_ = 1
        break
    N //= 10

if bool_ != 1:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
M = (N - N % 10) / 10
O = (M - M % 10) / 10

if N % 10 == 7:
    print("Yes")
elif M % 10 == 7:
    print("Yes")
elif O % 10 == 7:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
print("YNeos"[1-("7"in input())::2])

Submission status: Accepted

Solution code:
b="YNeos";a=input();print(b["7"not in a::2])

Submission status: Accepted

Solution code:
b="YNeos"
a=input();print(b["7"not in a::2])

Submission status: Accepted

Solution code:
s = int(input())#入力した数値
t = int(s % 10)#10で割ったあまり＝n桁目の数
u = int(s / 10)#10で割ったもの
while True:
    if t == 7:
        print("Yes")
        break
    elif u == 0:
        print("No")
        break
    t = int(u % 10)
    u = int(u / 10)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print("YNeos"[1-("7" in input())::2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def mainFunc():
    num = str(input())
    ans = 'Yes' if '7' in num else 'No'
    print(ans)


mainFunc()

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:
N = input().split('7')
#print(N)
if len(N)>1:
    ans = 'Yes'
else:
    ans = 'No'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
from math import *

N= int(input())

a = floor(N/100)
b=floor((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=input()
print('Yes') if n.count('7') else print('No')

Submission status: Accepted

Solution code:
s = input() 
l = [int(x) for x in s]

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

Submission status: Accepted

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