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())
N_str = str(N)
flag = 0
 
for i in range(0,3):
  if(N_str[i]=='7'):
    flag=1
    
if(flag==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=int(input())
n= [int(x) for x in list(str(n))]
 
 
if (7 in n):
    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):
    N = str(N)
    if "7" in N:
        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:
#!/usr/bin/env python3
import sys

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


def solve(N: int):
    n = str(N)
    if "7" in n:
        print(YES)
    else:
        print(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:
N = input()
N0 = int(N[0])
N1 = int(N[1])
N2 = int(N[2])

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

Submission status: Accepted

Solution code:
n=int(input())

if n//100==7:
  print("Yes")
  exit()
if (n%100)//10==7:
  print("Yes")
  exit()
if n%10==7:
  print("Yes")
  exit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

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

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

if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
n = int(input())
n = str(n)
n.split()
a= 0
for i in n:
    if i=='7':
        print('Yes')
        a =1
        break
if a==0:
    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()
S=[N[0],N[1],N[2]]
if "7" in S:
    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()
ans = 'No'
for i in range(3):
  if(N[i] == '7'):
    ans = 'Yes'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

a = N // 100
b = (N - 100*a) // 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())
a=list(str(n))
if a[0]=='7'or a[1]=='7'or a[2]=='7':
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import sys

stdin = sys.stdin

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))
mod = 10**9 + 7 
sys.setrecursionlimit(1000010)

S = ns()
if S[0] == "7":
    print('Yes')
    exit(0)
if S[1] == "7":
    print('Yes')
    exit(0)
if S[2] == "7":
    print('Yes')
    exit(0)
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:
import sys
N = str(input())

if '7' in N:
  print('Yes')
  sys.exit()

print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())
N = str(S)
M = len(N)
a = 0
for i in range(M):
    if N[i] == str(7):
        a = a + 1
    else:
        a = a + 0

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in N:
    if i == "7":
        ans = "Yes"
        break
    else:
        continue
        
print(ans)

Submission status: Accepted

Solution code:
from sys import stdin


def get_result(data):
    N = data[0]
    if '7' in list(str(N)):
        return 'Yes'
    return 'No'


if __name__ == '__main__':
    data = list(map(int, stdin.readline().rstrip().split(' ')))
    result = get_result(data)
    print(result)

Submission status: Accepted

Solution code:
# -*- coding=utf_8 -*-

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
map(int , str(n))
li=list(str(n))
c=0
for i in range(0,len(li)):
    if li[i]=='7':
        c+=1
    else:
        continue
        
if(c>=1):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=int(input())  #複数数値入力　「A B」みたいなスペース空いた入力のとき
if (a - 7)% 10 ==0 or (a//10 - 7) % 10==0 or (a//100 % 7)==0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
print("Yes") if '7' in str(n) and len(str(n)) == 3 else print("No")

Submission status: Accepted

Solution code:
N=int(input())
if 100<=N<=999:
    N=str(N)
    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, b, c = input()
a=int(a)
b=int(b)
c=int(c)


if a == 7:
    print('Yes')
else:
    if b == 7:
        print('Yes')
    else:
        if c == 7:
            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:
n = int(input())
a = []
while n > 0:
    a.append(n % 10)
    n //= 10
if 7 in a:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a = str(input())

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

Submission status: Accepted

Solution code:
t=False
for i in input():
    if i=='7':
        t=True
        break
print('Yes' if t==True else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=list(input())
x=0
for i in a:
    if i=="7":
        x=1
        print("Yes")
        break
if x==0:
    print("No")

Submission status: Accepted

Solution code:
N = list(input())

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

Submission status: Accepted

Solution code:
N = int(input())
a = N // 100
b = (N - 100 * a) // 10
c = (N - 100 * a - b * 10 )
if a == 7 :
    print('Yes')
elif b == 7 :
    print('Yes')
elif c == 7 :
    print('Yes')
else :
    print('No')

Submission status: Accepted

Solution code:
N= int(input())

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

Submission status: Accepted

Solution code:
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools,fractions,pprint
sys.setrecursionlimit(10**8)
mod = 10**9+7
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))

n = input()
res = False
for i in n:
    if i == '7':
        res = True
print('Yes' if res else 'No')

Submission status: Accepted

Solution code:
def main():
    N = input()
    strBool = "No"
    for num in N:
        if int(num) == 7:
            strBool = "Yes"

    print(strBool)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
k = str(int(input()))

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
a = input()

count = False
for i in range(len(a)):
    if a[i] == "7":
        count = True
        break

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

Submission status: Accepted

Solution code:
N = int(input())
f = 0
a = N//100
b = (N-a*100)//10
c = N-a*100-b*10
if a == 7 or b == 7 or c == 7:
    f = 1
if f == 1:
    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=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()
for i in range(len(n)):
    if n[i] == "7":
        print("Yes")
        break
else:
    print("No")

Submission status: Accepted

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

if __name__ == '__main__':
  main()

Submission status: Accepted

Solution code:
n=list(input())

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

Submission status: Accepted

Solution code:
a = str(input())

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

Submission status: Accepted

Solution code:
N = int(input())
lst = []
while N > 0:
    lst.append(N%10)
    N //= 10 # 必須
lst.reverse()
if 7 in lst:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a = input()
num = 0
for i in range(3):
  if a[i] == "7":
    num += 1
  else:
    num += 0

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

Submission status: Accepted

Solution code:

n=input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inp = input()
if inp.count('7') != 0:
  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:
a=input()
for i in range(3):
    if a[i]=="7":
        print("Yes")
        quit()
print("No")

Submission status: Accepted

Solution code:
n = str(input())

index = n.find('7')
if (index != -1):
  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()
iii = False
for i in n:
  if i =='7':
     iii = True
if iii:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N = int(input())

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

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
A = int(input())
flag = False
if A%10==7:
  flag = True
elif (A//10)%10==7:
  flag = True
elif (A//100)%10==7:
  flag = True
  
if flag:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
h = N // 100
t = (N - 100*h) // 10
o = N - 100*h - 10*t
if h == 7:
    print('Yes')
elif t == 7:
    print('Yes')
elif o == 7:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

cnt = N.count('7')

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

Submission status: Accepted

Solution code:
x = input()
x = str(x)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

k = input()
k = str(k)

ans = 'No'

# print(k[-1])

if int(k[-1]) == 7 :
    ans = 'Yes'

# print(k[-2])

if int(k[-2]) == 7 :
    ans = 'Yes'

# print(k[-3])

if int(k[-3]) == 7 :
    ans = 'Yes'


print(ans)

Submission status: Accepted

Solution code:
n = int (input())
p = int(n/100)
l = n%100
k = int(l/10)
h = l%10
if(p == 7 or l == 7 or k==7 or h==7):
    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:
N = int(input())
s = str(N)
check = 0

for i in range (0,len(s)):
    if int(s[i])==7:
        check = 1
if check==1:
    print("Yes")
elif check==0:
    print("No")

Submission status: Accepted

Solution code:
s = str(input())

n = len(s)
cnt = 0
for i in range(n):
    if s[i] == '7':
        cnt = 1
        break

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

Submission status: Accepted

Solution code:
n=int(input())
if n%10==7:
    print('Yes')
elif 70<=n%100 and n%100<=79:
    print('Yes')
elif 700<=n and n<=799:
    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 = 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:
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()
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 -*-
# A - Lucky 7
# 標準入力の取得
N = input()

# 求解処理
result = False
for n in N:
    if int(n) == 7:
        result = True

# 結果出力
if result:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

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

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


def solve(N: int):
    if str(N)[0] == "7" or str(N)[1] == "7" or str(N)[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:
#200412A
N = int(input())
flag = 0
if N%10 ==7:
    flag = 1
n=N//10
if n%10 ==7:
    flag =1
if N//100 ==7:
    flag = 1
if flag ==1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def read():
    N = input()
    return N, 

def solve(N):
    return 'Yes' if '7' in N else 'No'

if __name__ == '__main__':
    inputs = read()
    print("{}".format(solve(*inputs)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

N =  str(input())

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

Submission status: Accepted

Solution code:
a = int(input())
b = a//100
c = a%100 //10
d = a%10

if b == 7:
    print('Yes')
elif c == 7:
    print('Yes')
elif d == 7:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(input())

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

Submission status: Accepted

Solution code:
N = input()
if N[0] == "7":
    print("Yes")
else:
    if N[1] == "7":
        print("Yes")
    else:
        if 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 = int(input())
s = str(n)
num = list(map(int,s))

for i in num:
  if i == 7:
    print("Yes")
    exit()
print("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 n:
    if i == "7":
        print("Yes")
        exit()

print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

ans = '7' in str(N)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def main():
    N = list(map(str, open(0).read().split()))
    flag = N[0].find('7')
    if flag >= 0:
        print('Yes')
    else:
        print('No')

main()

Submission status: Accepted

Solution code:
a = int(input())
def check_seven(a):
    for i in range(3):
        if a % 10 == 7:
            print("Yes")
            return
        a //= 10
    print("No")
    return
check_seven(a)

Submission status: Accepted

Solution code:
N = [1 for x in input() if int(x) == 7]
result = 'Yes' if N else 'No'
print(result)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())

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

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

Submission status: Accepted

Solution code:
import re

N=str(input())

t=N.count("7")

if t>=1:
    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:
n = int(input())
 
n = [int(i) for i in str(n)]
 
if 7 in n:
    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 = []
N = list(input())
a = 0

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
f = False
for i in s:
    if i == '7':
        f = True
        break

if f:
    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=int(input())
N=str(N)
judge=0
for i in N:
    if(i=="7"):
        judge=1
    else:
        pass
if(judge==1):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
m = list(input())

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

Submission status: Accepted

Solution code:
N=input()
l=False
for e in N:
    if e=="7":
        l=True

if l==True:
    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:
s = map(int, list(input()))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print("Yes" if("7"in input())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:
ipt = str(input().split())
if("7" in ipt):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

bool_7 = False

for i in N:
    if (int(i)== 7):
        bool_7 = True
        break

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

Submission status: Accepted

Solution code:
n = input()
seven = False
for i in range(3):
    if n[i] == '7':
        seven = True
        break
if seven:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

N=int(input())
flag=False
for i in range(3):
    if(int(N//(10**i))%10==7):
        flag=True

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

Submission status: Accepted

Solution code:
n = list(map(int,input()))
print('Yes' if n.count(7) >= 1 else 'No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
# import numpy as np
# import math
# import copy
# from collections import deque
import sys
input = sys.stdin.readline
# sys.setrecursionlimit(10000)


def main():
    N = input().rstrip()

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



main()

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    if N % 10 == 7:
        print('Yes')
        return
    d1 = N // 10
    if d1 % 10 == 7:
        print('Yes')
        return
    d2 = d1 // 10
    if d2 % 10 == 7:
        print('Yes')
        return
    print('No')
    return


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
def main():
    n = int(input())

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a = map(int, input().split())
a = int(list(a)[0])


#  for a in range(100, 1000):

ans = 'No'
while a > 1:
    #  print(f"a = {a}  : ", end='')
    if a % 10 == 7:
        ans = 'Yes'
        break
    a /= 10
    a = int(a)
print(ans)

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==0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
# sys.stdin = open('input.txt')

n = input()
if n.__contains__('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())
a=n[0]
b=n[1]
c=n[2]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

if n[0] == '7':
  print('Yes')
  exit()
  
if n[1] == '7':
  print('Yes')
  exit()
  
if n[2] == '7':
  print('Yes')
  exit()

print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
M=str(input())
Ans=list(M)
count=0
for item in Ans :
    if item=="7" :
        print("Yes")
        break
    else :
        count+=1
if count==3:
     print("No")

Submission status: Accepted

Solution code:
#!python3

# input
N = input()


def main():
    if N.count("7"):
        ans = "Yes"
    else:
        ans = "No"
    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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


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

Submission status: Accepted

Solution code:
N = input()
YN = False
for i in N:
    if int(i) == 7:
        YN = True
if YN:
    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:
def main():
    str = input()

    for i in range(len(str)):
        if(7 - int(str[i]))==0:
            print("Yes")
            return 0

    print("No")

main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input()
txt=str(a)

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

Submission status: Accepted

Solution code:
n = str(input())
l = [n[0], n[1], n[2]]

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
str=input()

flg=0
for c in str:
    if c == '7':
        flg=1

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

Submission status: Accepted

Solution code:
N = input()
count=1

for ch in N:
    if ch == '7':
        print('Yes')
        break
    count += 1
    if count ==4:
        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())

result = ""
while n > 0:
    if n % 10 == 7:
         result = 'Yes'
         break
    else:
        n //= 10
if not result:
    result = 'No'
print(result)

Submission status: Accepted

Solution code:
N = input()

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