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

Submission status: Accepted

Solution code:
input_n = input()

flag = True

for char in input_n:
    if char == "7":
        print("Yes")
        flag = False
        break

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
readline = sys.stdin.buffer.readline
s =readline().rstrip().decode()
if s.find('7') == -1:
  print('No')
else:
  print('Yes')

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")
  exit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input().split())

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

Submission status: Accepted

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

main()

Submission status: Accepted

Solution code:
def solve(n):
    if "7" in list(str(n)):
        return "Yes"
    else:
        return "No"


def main():
    n = int(input())
    res = solve(n)
    print(res)


def test():
    assert solve(117) == "Yes"
    assert solve(123) == "No"
    assert solve(777) == "Yes"


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

Submission status: Accepted

Solution code:
hoge = input()

if hoge[0] == "7" or hoge[1] == "7" or hoge[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:
#!/usr/bin/env python

import sys

N = sys.stdin.readline()

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(1 << 25)
read = sys.stdin.readline
ra = range
enu = enumerate


def read_ints():
    return list(map(int, read().split()))


def read_a_int():
    return int(read())


def read_tuple(H):
    '''
    H is number of rows
    '''
    ret = []
    for _ in range(H):
        ret.append(tuple(map(int, read().split())))
    return ret


def read_col(H, n_cols):
    '''
    H is number of rows
    n_cols is number of cols
    A列、B列が与えられるようなとき
    '''
    ret = [[] for _ in range(n_cols)]
    for _ in range(H):
        tmp = list(map(int, read().split()))
        for col in range(n_cols):
            ret[col].append(tmp[col])
    return ret


def read_matrix(H):
    '''
    H is number of rows
    '''
    ret = []
    for _ in range(H):
        ret.append(list(map(int, read().split())))
    return ret
    # return [list(map(int, read().split())) for _ in range(H)] # 内包表記はpypyでは遅いため


def read_map(H):
    '''
    H is number of rows
    文字列で与えられた盤面を読み取る用
    '''
    return [read()[:-1] for _ in range(H)]


def read_map_as_int(H):
    '''
    #→1,.→0として読み込む
    '''
    ret = []
    for _ in range(H):
        ret.append([1 if s == '#' else 0 for s in read()[:-1]])
        # 内包表記はpypyでは若干遅いことに注意
        # #numpy使うだろうからこれを残しておくけど
    return ret


MOD = 10**9 + 7
INF = 2**31  # 2147483648 > 10**9
# default import
from collections import defaultdict, Counter, deque
from operator import itemgetter
from itertools import product, permutations, combinations
from bisect import bisect_left, bisect_right  # , insort_left, insort_right
from math import gcd


def lcm(a, b):
    # 最小公倍数
    g = gcd(a, b)
    return a * b // g


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

Submission status: Accepted

Solution code:
def main():
    t = input()
    for c in t:
        if c == '7':
            print('Yes')
            exit()
    print('No')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = int(input())
lA = list(str(N))
flag = 0
for i in range(3):
    if lA[i] == '7':
        flag += 1
if flag != 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
s = [N[i] for i in range(len(N))]
sw = False
for i in range(len(s)):
    if s[i] == "7":
        sw = True

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

Submission status: Accepted

Solution code:
n = input()
print('Yes' if any(map(lambda x: x == '7', n)) else "No")

Submission status: Accepted

Solution code:
n = input()

ans = "No"
if n[0] == "7" or n[1] == "7" or n[2] == "7":
    ans = "Yes"

print(ans)

Submission status: Accepted

Solution code:
a = int(input())
#a = 118
l = [int(x) for x in list(str(a))]
flag = False

for x in l:
	if x == 7:
		flag = True

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

N = int(input())

if N // 100 == 7:
    print("Yes")
    sys.exit()
N = N % 100


if N // 10 == 7:
    print("Yes")
    sys.exit()

N = N % 10
if N == 7:
    print("Yes")
    sys.exit()

print("No")

Submission status: Accepted

Solution code:
N = input()
hN = str(N)[0:1]
dN = str(N)[1:2]
mN = str(N)[2:3]
#print(str(N)+hN+dN+mN)

bool = 0

if hN == '7':
    bool = bool + 1
elif dN == '7':
    bool = bool + 1
elif mN == '7':
    bool = bool + 1

if bool == 1:
    print('Yes')
elif bool == 0:
    print('No')

Submission status: Accepted

Solution code:
def shred(num, base=10, reverse=True):
    digits = []
    while num != 0:
        digits.append(num % base)
        num /= base
        num = int(num)
    if not reverse:
        digits = [dig for dig in reversed(digits)]
    return digits

if __name__ == '__main__':
    N = int(input())
    if 7 in shred(N):
        print('Yes')
    else:
        print('No')

Submission status: Accepted

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


N=input()

ans="No"

for i in range(3):
    if int(N[i])==7:
        ans="Yes"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
k = 0
N = input()
for i in range(3):
    if N[i] == "7":
        k = 1


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
  S = set(input())
  
  if '7' in S:
    print("Yes")
  else:
    print("No") 
  return 0
 
if __name__ == "__main__":
  main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

flag = "No"

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=input()

flg=0
for i in range(len(N)):
    if N[i]=='7':
        flg+=1

if flg!=0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
x = N
flg = False
while x:
    if x % 10 == 7:
        flg = True
        break
    x //= 10
if flg:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
N=input()
N=int(N)
a = N / 100
a = int(a)
b = (N - a * 100)/10
b = int(b)
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:
#!/usr/bin/env python3
N = str(input())
seven = "7"

#print(type(N), type(seven))
if seven in N:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def lucky(n):
    flag = 'No'
    for i in n:
        if i == '7':
            flag = 'Yes'
    print(flag)

n = input()
lucky(n)

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()
a=int(N[0])
b=int(N[1])
c=int(N[2])
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:
raw_input = input().split()
for r in raw_input[0]:
  if '7' == r:
    print('Yes')
    break
else:
  print('No')

Submission status: Accepted

Solution code:
N=input()
n=[int(c) for c in(N)]
flag=0
for i in (n):
  if i==7:
    flag=1
if flag==1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n =int(input())

c = 1
for i in str(n):
    if i == str(7):
        print('Yes')
        c = 0
        break
    else:
        pass
if c != 0:
    print('No')

Submission status: Accepted

Solution code:
import sys

no = int(input())

no_xxo = no % 10
if no_xxo == 7:
    print('Yes')
    sys.exit(0)

no_xox = (no % 100) - no_xxo
if no_xox == 70:
    print('Yes')
    sys.exit(0)

no_oxx = no - no_xox - no_xxo
if no_oxx == 700:
    print('Yes')
    sys.exit(0)

print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
ml = list(map(int, list(str(N))))
cnt = 0
for i in ml:
    if (i == 7):
        cnt += 1
if (cnt>=1):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

N = int(input())
ans = 'No'

a = N%10
N = N//10

b = N%10
N = N//10

c = N%10
N = N//10

if a==7 or b==7 or c==7:
    ans ='Yes'

print(ans)

Submission status: Accepted

Solution code:
a = list(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())
if (N-7)%10==0:
  Y="Yes"
elif (N-70)%100<10:
  Y="Yes"
elif (N-700)%1000<100:
  Y="Yes"
else:
  Y="No"
print(Y)

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str=input()
a=str.find("7")
if a!=-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=raw_input()
if "7" in N:
    print "Yes"
else:
    print "No"

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    args = input().rstrip().split(' ')
    N = [val for val in args[0]]
    flag = False
    for val in N:
        if(val == '7'):
            flag = True
            break
    if(flag):
        print('Yes')
    else:
        print('No')
    
if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
S = input()

def main(S):
    for i in range(len(S)):
        if S[i] == '7':
            return 'Yes'

    return  'No'

print(main(S))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str = input()
if str[0] == "7" or str[1] == "7" or str[2] == "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 = list(input())
ans = 0

for i in range(len(N)):
    if(N[i] == '7'):
        ans = 1
        break
    else:
        pass
if(ans == 1):
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = int(input())
h = A//100
t = (A-h*100)//10
o = (A-h*100-t*10)

if h==7 or t==7 or o==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:
item = input()
if "7" in item:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=str(input())
l=list(n)
if l[0] == '7' or l[1] == '7' or l[2] == '7':
    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:
import sys
N = list(input())

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

Submission status: Accepted

Solution code:
N = int(input())

if 100 <= N and N <=999:
  N11 = str(N)
  N1 = int(N11[0])
  N2 = int(N11[1])
  N3 = int(N11[2])
  if N1 == 7 or N2 == 7 or N3 == 7:
    print('Yes')
  else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = list(input())
flag = 0
for i in N:
	if i == '7':
		flag = 1
if flag == 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.__contains__('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")
    exit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
# coding: utf-8
import sys
sys.setrecursionlimit(10000000)

#const
dxdy=((1,0),(0,1))
# my functions here!
def pin(type=int):
    return map(type,input().rstrip().split())
from math import gcd
def resolve():
    print(["No","Yes"]["7" in input()])
"""         
#printデバッグ消した？
#前の問題の結果見てないのに次の問題に行くの？
"""
"""
お前カッコ閉じ,るの忘れてるだろ
"""
import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """117"""
        output = """Yes"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """123"""
        output = """No"""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """777"""
        output = """Yes"""
        self.assertIO(input, output)


if __name__ == "__main__":
    resolve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import sys
import collections
N=list(input())
a,b,c=map(int,N)
if a==7 or b==7 or c==7:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
a=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
flag = 0
for i in range(0,3):
    if N[i] == '7':
        flag = 1
        break
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:
import sys
input = sys.stdin.readline

n = int(input())
s = False
while n > 0:
  if (n%10 == 7):
    s = True
    break
  else:
    n = n // 10
if s:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n = input()

x = 0
for i in n:
    if i == '7':
        x += 1

if x >= 1:
    print('Yes')
else:   print('No')

Submission status: Accepted

Solution code:
N = input()
 
flag =0
if N[0] == "7":
  flag = 1
if N[1] == "7":
  flag = 1
if N[2] == "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:
import sys
n=int(input())
for i in range(3):
  if n%10==7:
    print("Yes")
    sys.exit()
  n=n//10
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()

ans = 0
for i in range(3):
	if S[i] == "7":
		print("Yes")
		ans = 1
		break

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

Submission status: Accepted

Solution code:
a=int(input())
b=a%10
c=(a%100 - b)/10
d=a//100
if b==7:
  print('Yes')
elif c==7:
  print('Yes')
elif d==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()
if N.count("7") != 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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


s = input()

output = 'No'
for c in s:
    if c == '7':
        output = 'Yes'
        break


print(output)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())
  
li = [N[0],N[1],N[2]]

if "7" in li:
    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 = list(input())
j = 0
for i in n:
  if i == "7":
    j = 1
if j==1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = str(input())
tf = '7' in N
print('Yes' if tf is True else '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:
l = list(input())
for i in range(3):
  if l[i] == "7":
    print("Yes")
    exit()
print("No")

Submission status: Accepted

Solution code:
a = input()

for i in a:
    if i == "7":
        ans = "Yes"
        break
    else:
        ans = "No"

print(ans)

Submission status: Accepted

Solution code:
from collections import defaultdict

import sys
sys.setrecursionlimit(10**6)
ii = lambda: int(input())
mis = lambda: map(int,input().split())
lmis = lambda: list(mis())
INF = float('inf')

def main():
    n=list(input())
    for s in n:
        if s=='7':
            print('Yes')
            exit()
    print('No')



if __name__ == "__main__":
    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 sys
si = sys.stdin.readline
so = sys.stdout.write


def main():
    n = int(si())
    while n > 0:
        temp = n % 10
        if temp == 7:
            print('Yes')
            return
        n //= 10
    print('No')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:

def main():
    t = input()
    for c in t:
        if c == '7':
            print('Yes')
            exit()
    print('No')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N=int(input())
I= [int(x) for x in list(str(N))]

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

Submission status: Accepted

Solution code:
N = input()
if int(N) % 10 == 7:
  print("Yes")

elif (int(N) - int(N)%10)%100 == 70:
  print("Yes")

elif int(N) - int(N)%100 == 700:
  print("Yes")

else:
  print("No")

Submission status: Accepted

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

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=0
 
for i in range(3):
    if N[i] == "7":
        m=1
        break
 
if m==1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a = list(input())
b = 0
for i in range(3):
    if a[i] == "7":
        b += 1
    else:
        continue
if b>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:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

ans = "No"
for c in n:
    if c == "7":
        ans = "Yes"
        break
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = list(input())

temp = [i for i in N if i == "7"]
print("Yes") if len(temp) > 0 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())
# N = list(str(117))
# print(N)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
N = input()
if N[:1]=='7' or N[1:2]=='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:
def main():
  return 'Yes' if '7' in input() else 'No'

print(main())

Submission status: Accepted

Solution code:
N = input()

ans = 'No'
for i in range(3):
    if(N[i-1] == '7'):
        ans = 'Yes'

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

N = list(input())
flag=0
for i in range(3):
    if N[i]=='7':
        flag=1

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

Submission status: Accepted

Solution code:
import sys

N = input()

for ch in N:
    if ch == '7':
        print('Yes')
        sys.exit()
print('No')

Submission status: Accepted

Solution code:

def number(m):

    while (m>0):
        n = m%10
        m = m//10

        if n==7:
            return "Yes"         
    return "No"
n = int(input())
print(number(n))

Submission status: Accepted

Solution code:
#ABC083B - Some Sums
n = input()
n_list = list(n)
if ("7" in n_list):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = list(input())
check = 0
for n in N:
    if n == '7':
        check = 1
 
if check == 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:

a = int(input())

def lucky_seven(N):
  if "7" in str(N):
    return "Yes"
  else:
    return "No"
  
print(lucky_seven(a))

Submission status: Accepted

Solution code:
n=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if '7' in ls:
  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 str(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()
a = int(a_)
if str(a).count('7') >= 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
flag = 0
for item in N:
    if item == '7':
        flag = 1
        break;

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

Submission status: Accepted

Solution code:
N = list(input())

num = 0

for i in N:
    if i == '7':
        num += 1
    else:
        pass

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

Submission status: Accepted

Solution code:
"""
int(input())
map(int,input().split())
list(map(int,input().split()))

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

Submission status: Accepted

Solution code:
n = input()
n_list = list(n)#文字列をリストに

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

Submission status: Accepted

Solution code:
n = input()

l = False

for k in range(3):
    if n[k] == "7":
        l = True

if l:
    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 = 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 = input()

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
s = input()
f = False
for i in s:
    if i == '7':
        f =True
        
if f == True:
    print("Yes")
else:
    print("No")