Problem:


Score : 100 points

Problem Statement

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

If so, print Yes; otherwise, print No.

Constraints

100 \leq N \leq 999

Input

Input is given from Standard Input in the following format:

N

Output

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

Sample Input 1

117

Sample Output 1

Yes

117 contains 7 as its last digit.

Sample Input 2

123

Sample Output 2

No

123 does not contain the digit 7.

Sample Input 3

777

Sample Output 3

Yes



Sample input:
117


Sample output:
Yes

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if(input().count("7")>0): 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:
s = str(input())
ans = "No"
for i in s:
    if i=='7':
        ans = "Yes"
        break
print(ans)

Submission status: Accepted

Solution code:
#3桁の数字
N = input()
#7
Sev = '7'
#3桁の数字NにSev('7')が含まれるか
if Sev in N:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = list(input())

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

Submission status: Accepted

Solution code:
n = str(input())

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

Submission status: Accepted

Solution code:
x  = input()
found = False
for i in x:
    if i == "7":
        print("Yes")
        found = True
        break

if not found:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import itertools
import math
import fractions
import functools
import copy
from collections import deque

n = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N  = int(input())
k = str(N)
m = list(k)
ans = "No"
if("7" in m):
  ans = "Yes"
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# encoding:utf-8
import copy
import random
import bisect #bisect_left　これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys
import collections

mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000

d = collections.deque()
def LI(): return list(map(int, sys.stdin.readline().split()))

N = int(input())

ans = False
for i in str(N):
    if i == "7":
        ans = True
if ans:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())

k1 = n % 10
k2 = n % 100
k3 = n / 100

if k1 == 7:
    print("Yes")
elif k2 >= 70 and k2 <= 79:
    print("Yes")
elif k3 >= 7 and k3 < 8:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
ans = "No"

s = input()

while s != "":
    if s[0] == "7":
        ans = "Yes"
    s = s[1:]

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=str(input())
p=0
for x in n:
    if x=='7':
        p="Yes"
if p=='Yes':
    print(p)
if p==0:
    print('No')

Submission status: Accepted

Solution code:

n = input()

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

Submission status: Accepted

Solution code:
s = input()
result = "No"
for i in s:
    if i == '7':
        result = "Yes"
        break

print(result)

Submission status: Accepted

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

Submission status: Accepted

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

input = sys.stdin.readline


def Y():
    print("Yes")


def N():
    print("No")


def S():
    return input().rstrip()


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


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


if "7" in S():
    Y()
else:
    N()

Submission status: Accepted

Solution code:
a=input()

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

Submission status: Accepted

Solution code:
a=int(input())
if "7" in str(a):
    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:
N = input()
num = len(N)

ans = 0

for i  in range(num):
    new_N = int(N[i])
    if new_N == 7:
        ans += 1


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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

print("Yes" if n.replace("7","") != n else "No")

Submission status: Accepted

Solution code:
N=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

    n = str(n)
    flag = False
    for char in n:
        if char == '7':
            flag = True

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

Submission status: Accepted

Solution code:
import sys
N = input()
for i in range(3):
    if N[i] == '7':
        print('Yes')
        sys.exit()
print('No')

Submission status: Accepted

Solution code:
n = list(input())

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

Submission status: Accepted

Solution code:
n = input()
a = []
for i in n:
  a.append(i)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# unihernandez22
# https://atcoder.jp/contests/abc162/tasks/abc162_a
# implementation
print("Yes" if '7' in input() else "No")

Submission status: Accepted

Solution code:
n = list(input())

for x in n:
    if x == '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:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = [int(i) for i in input()]
count = 0
for i in range(3):
    if n[i] == 7:
        count += 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = input()
result = False

for i in num:
    if i == "7":
        result = True
        break

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())
s=0
if int(N[0])==7:
    s=1
    
if int(N[1])==7:
    s=1
if int(N[2])==7:
    s=1
if s==1:
    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=int(input())
data=[10**i for i in range(1,3+1)]
for i in data:
  if n%i==7*(i/10):
    print("Yes")
    exit()
  n-=n%i
print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=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()
count = 0
for i in n:
  if i == '7':
    count += 1
if count > 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
import sys


def main():
    N = input()
    for i in N:
        if i == '7':
            print('Yes')
            sys.exit()
    print('No')



if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
ans = "No"
for i in range(3):
    if str(n%(10**(i+1)))[0] == "7":
        ans = "Yes"
        break
print(ans)

Submission status: Accepted

Solution code:
n = input()

flag = 0

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

Submission status: Accepted

Solution code:
#n, m, q = map(int, input().split())
#List = list(map(int, input().split()))
#req = [list(map(int, input().split())) for _ in range(q)]
#t = t[:-1]
#print(ans[j], end = "") 改行無しで出力
#ans = [0]*n
n = input()
flag = 0

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

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

Submission status: Accepted

Solution code:
N = str(input())

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

Submission status: Accepted

Solution code:
N = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input())

for i in range(3):
    if n[i] == "7":
        print("Yes")
        break
    elif i == 2:
        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("")
bool=False
for i in range(len(N)):
    if int(N[i])==7:
        bool=True

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

Submission status: Accepted

Solution code:
N = input()

three_letters = [N[0], N[1], N[2]]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

seven = False
for n in N:
    if n == '7':
        seven = True

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

Submission status: Accepted

Solution code:
a = str(input())
# print(a*6.28318530717958623200)
f=0
for i in range(3):
    if a[i] == "7":
        f =1
if f==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:
n = str(input())
for i in range(3):
    if n[i]== '7':
        print('Yes')
        exit(0)
print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=input()

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

Submission status: Accepted

Solution code:
import sys

def ep(*params):
    print(*params,file=sys.stderr)
    
inp = input().rstrip()
if inp.find('7') >= 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

digit1=N % 10
digit2=(N // 10) % 10
digit3=N // 100

if digit1 == 7 or digit2 == 7 or digit3 == 7:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
N = input()

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

print('No')

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
n=str(input())
if n[-1]=="7" or n[-3]=="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())
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 s[0]=='7':
    print('Yes')
elif s[1]=='7':
    print('Yes')
elif s[2]=='7':
    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:
def main():
        N = int(input())
        N_list = list(str(N))

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


if __name__=="__main__":
        main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

n100 = n // 100
n10 = n % 100 // 10
n1 = n % 10
if n100 == 7 or n10 == 7 or n1 == 7:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N=input()

flag=True
for i in range(3):
  if N[i]=="7":
    flag=False
    print('Yes')
    break
 
if flag:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from copy import deepcopy
from sys import stdin

def S(): return stdin.readline().rstrip()
def I(): return int(stdin.readline().rstrip())
def LS(): return list(stdin.readline().rstrip().split())
def LI(): return list(map(int,stdin.readline().rstrip().split()))
def R(x):
    r = round(x)
    if r+0.5 <= x:
        r += 1
    return r

n = S()

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

print('No')

Submission status: Accepted

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

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


if __name__ == "__main__":
    main()

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:
from sys import stdin, setrecursionlimit


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


if __name__ == "__main__":
    setrecursionlimit(10000)
    main()

Submission status: Accepted

Solution code:
N = input()
l = [char for char in N]
if '7' in l :
  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 = int(input())
if "7" in str(N):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

if "7" in N:
    res = "Yes"
else:
    res = "No"

print(res)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def I(): return (input())
N = I()

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

Submission status: Accepted

Solution code:
N = input()

N = set(list(N))

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=list(input())
#print(S)
M="No"#最初にNoにする
for i in S:
    #print(i)
    if i == "7":
        M="Yes"
        break
print(M)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

num = int(input())
##strに置換して一桁ごとにわける
N = list(str(num))
##桁数
keta = len(N)

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

Submission status: Accepted

Solution code:
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))

n = ni()

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

print('No')

Submission status: Accepted

Solution code:
n = input()

def lucky(n):
    for i in n:
        if i == "7":
            print("Yes")
            return
    
    print("No")

lucky(n)

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
N = input()
flag = 0
for i in range(len(N)):
    if int(N[i]) == 7:
        flag = flag + 1

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

Submission status: Accepted

Solution code:
tmp = input().split()
N1 = int(tmp[0][0])
N2 = int(tmp[0][1])
N3 = int(tmp[0][2])

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

Submission status: Accepted

Solution code:
def solve(string):
    return "Yes" if "7" in string else "No"


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip()))

Submission status: Accepted

Solution code:
def solve(string):
    return "Yes" if "7" in set(string) else "No"


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip()))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC162A

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 = str(input())
if int(n[0]) != 7 and int(n[1]) != 7 and int(n[2]) != 7:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a=input()

count = 0

for i in range(len(a)):
	if (a[i] == '7'):
		count +=1
	else:
		count +=0

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

Submission status: Accepted

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

print(ret)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = [i for i in input()]
print('Yes' if '7' in N else 'No')

Submission status: Accepted

Solution code:
n = list(input())

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

Submission status: Accepted

Solution code:
n = list(input())

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

Submission status: Accepted

Solution code:
print('NYoe s'['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:
n=input()
print("No" if n.count("7")==0 else "Yes")

Submission status: Accepted

Solution code:
N = str(input())

num_set = set([])

for n in N[: : 1]:
    num_set.add(n)


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
isNana = False

while n > 0:
    if (n - 7) % 10 == 0:
        isNana = True
    n = int((n - (n % 10)) / 10)
    
if isNana:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

main()

Submission status: Accepted

Solution code:
i = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s= input()
i=0
res=[]
while i< len(s):
  j=s[i:i+1]
  res.append(j)
  i+=1
print('Yes' if str(7) in res else 'No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
print('Yes' if '7' in s else '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())
while n != 0:
  n,mod = divmod(n, 10)
  if mod == 7:
    print('Yes')
    exit()
print('No')

Submission status: Accepted

Solution code:
import sys
readline = sys.stdin.readline


def main():
    n = readline().rstrip()
    print("YNeos"[not(n[0] == "7" or n[1] == "7" or n[2] == "7")::2])


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = [x for x in input()]
for i in range(len(a)):
    if a[i] == '7':
        a[i] = True
    else:
        a[i] = False
if any(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=input()
if N.count('7')==0:
  print('No')
  
else:
  print('Yes')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=input()
aru=0
for s in N:
    if s == "7":
        aru=1
        break
if aru==0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
N = list(input())

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

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:
import itertools
import math
import fractions
import functools
n = input()
for i in range(len(n)):
    if n[i] == "7":
        print("Yes")
        quit()

print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
k = input()
if '7' in k:
    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:
print("NYoe s"['7'in input()::2])

Submission status: Accepted

Solution code:
N = set(input())

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

Submission status: Accepted

Solution code:
print("NYoe s"["7" in input()::2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

ans = 0

for i in range(0,3):
    if (n % 10) == 7:
        ans = 1
        break
    else:
        n = int(n/10)

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

Submission status: Accepted

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