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:
import math

n = int(input())

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

Submission status: Accepted

Solution code:
N = list(input())
flag = False

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

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

Submission status: Accepted

Solution code:


"""
NTC here
"""
import sys
inp = sys.stdin.readline
def input(): return inp().strip()
flush= sys.stdout.flush
# import threading
# sys.setrecursionlimit(10**6)
# threading.stack_size(2**26)

def iin(): return int(input())


def lin(): return list(map(int, input().split()))

# out = []
# range = xrange
# input = raw_input

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

main()
# threading.Thread(target=main).start()

Submission status: Accepted

Solution code:
N=input()
res=N.find("7")
if res!=-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())

a = 0
for i in range(3):
  if n[i] == '7':
    print('Yes')
    a += 1
    break
    
if a == 0:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

l = list(S)

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

Submission status: Accepted

Solution code:
N = input()
flg = False
for i in range(len(N)):
    if N[i] == '7':
        flg = True
        break
if flg:
    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 = int(input())

for a in list(str(N)):
    if a == '7':
        print('Yes')
        exit()
print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input())

flag = False
for i in n:
    if i == '7':
        print("Yes")
        flag = True
        break

if flag == False:
    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:
A=input()
if '7' in A:
    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:

a = [int(i) for i in list(input())]


if 7 in a:
    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:
def main():
    a = input()
    for i in a:
        if i == '7':
            print('Yes')
            exit()
    print('No')
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def findSeven(N):
    for i in N:
        if i == '7':
            return 'Yes'
    return 'No'

N = input()
print(findSeven(N))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = str(input())

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

Submission status: Accepted

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

print('No' if a!='7' and b!='7' and c!='7' else 'Yes')

Submission status: Accepted

Solution code:


def solve():
    S = input()
    if S.find('7') >= 0:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
import bisect,collections,copy,itertools,math,numpy,string
def I(): return int(input())
def S(): return input()
def LI(): return list(map(int,input().split()))
def LS(): return list(input().split())
##################################################
N = S()
print('Yes' if N[0]=='7' or N[1]=='7' or N[2]=='7' else 'No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
print("Yes" if "7" in input() else "No")

Submission status: Accepted

Solution code:
Y = input()
flg = False
for i in Y:
    if i == '7':
        print("Yes")
        flg = True
        break
if not flg:
    print("No")

Submission status: Accepted

Solution code:
a,b,c=map(int,input())
if a==7:
    print("Yes")
elif b==7:
    print("Yes")
elif c==7:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
s = input()
for i in s:
    if i == '7':
        print('Yes')
        sys.exit()
print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
is_ok = False

for i in range(len(n)):
    if n[i] == '7':
        is_ok = True

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

Submission status: Accepted

Solution code:
a=list(input())
print("Yes" if "7" in a 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:
x = input()
if "7" in x:
    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:
if __name__ == '__main__':
    #s = input().rstrip().split(' ')
    N = int(input())
    if N%10==7:
        print('Yes')
        exit()

    N = int(N/10)
    if N%10==7:
        print('Yes')
        exit()

    N = int(N/10)
    if N%10==7:
        print('Yes')
        exit()

    print('No')

Submission status: Accepted

Solution code:
n = input()
flag = 'No'

for i in n:
  if i == '7':
    flag = 'Yes'
    
print(flag)

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

has_seven = False

for n in N:
    if(n == '7'):
        has_seven = True
        break

if has_seven:
    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()

ans = n.find('7')

if ans == -1:
    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:
n = list(input())
ans = "No"
for v in n:
    if v == str(7):
        ans = "Yes"
        break
print(ans)

Submission status: Accepted

Solution code:
n = input()
in7 = False
for i in range(len(n)):
    if n[i] == "7":
        in7 = True
if in7 == True:
    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:
a=input()
q = -1
if a[0]=='7':
    q =1
elif a[1]=='7':
    q = 1
elif a[2]=='7':
    q = 1

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

Submission status: Accepted

Solution code:
n = int(input())
a = n%10
b = (n%100-a)//10
c = (n-a-b*10)//100

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import re

if re.match(".*7.*", input()):
    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:
num = input()
if "7" in num:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = list(input())
if str(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:
x=input()
f=False
for i in range(3):
  if x[i]=="7":
    f=True

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

Submission status: Accepted

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

Submission status: Accepted

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

print(return_str)

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
judge = False
for i in range(len(n)):
    if n[i] == "7":
        judge = True
        break
if judge == True:
    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()
print("Yes" if N.replace("7","") != N else "No")

Submission status: Accepted

Solution code:
import sys

n = input()

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

Submission status: Accepted

Solution code:
N = input()

for i in range(3):
    if N[i] == "7":
        a = True
        break
    else:
        a = False

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import heapq, math
from itertools import zip_longest, permutations, combinations, combinations_with_replacement
from itertools import accumulate, dropwhile, takewhile, groupby
from functools import lru_cache
from copy import deepcopy

N = int(input())

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

Submission status: Accepted

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

N = input()

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
import sys
from collections import Counter
from itertools import permutations, combinations
from fractions import gcd
from math import ceil, floor
sys.setrecursionlimit(10 ** 6)

def input():
    return sys.stdin.readline()[:-1]

def main():
    N = input()
    flag = False
    for l in N:
        if l == '7':
            flag = True
        else:
            pass
    if flag:
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# =map(int,input().split())
n=int(input())
m=str(n)
import sys
for i in range(3):
    if m[i]=='7':
        print('Yes')
        sys.exit()
print('No')

Submission status: Accepted

Solution code:
N = input()  #スペース抜きの複数行,１文字ずつ

#print(N)
for i in N:
#    print(i)
    if i == "7":
        print("Yes")
        exit()

print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#problem A
input_d11 = input()
N = str(input_d11)
t = 0
for i in N:
    if i == '7':
        t += 1
    else:
        pass
if t > 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8 ff=unix


def solv(N):
    if "7" in N:
        return "Yes"
    return "No"


if __name__ == "__main__":

    # N
    #
    N = input()
    ans = solv(N)

    print(ans)

Submission status: Accepted

Solution code:
import sys

N = input()

for N_char in N:
    if N_char == "7":
        print("Yes")
        sys.exit()
print("No")

Submission status: Accepted

Solution code:
a = input()

b = 0
for i in a:
  if i == '7':
    print('Yes')
    break
  b+=1
  if b == 3:
    print('No')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

a = N%10
b = (N//10)%10
c = N//100

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

Submission status: Accepted

Solution code:
N = int(input())
d0 = N//100
a0 = N % 100
d1 = a0 // 10
d2 = a0 % 10
if d0 == 7:
    print('Yes')
elif d1 == 7:
    print('Yes')
elif d2 == 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:
print("YNeos"[not '7' in input()::2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

def check(N):
    if N//100==7:
        return True
    N = N - ((N//100)*100)
    if N//10==7:
        return True
    N = N - ((N//10)*10)
    if N==7:
        return True
    return False

if check(N):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n= input()
if n.find("7") != -1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = str(input())
n = 0
for i in N:
	if int(i)==7:
		print("Yes")
		break
	else:
		n += 1
if n == 3:
	print("No")

Submission status: Accepted

Solution code:
N = int(input())

for i in range(4):
    if(N==0):
        print("No")
    a = N%10
    if(a == 7):
        print("Yes")
        break
    else:
        N = N//10

Submission status: Accepted

Solution code:
n = input()
ans = []
for i in n:
    if i == '7':
        ans.append(i)
if int(len(ans)) > 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
#!/usr/bin/python3.6
N = input()
if '7' in N:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = input()

for s in n:
    if s == '7':
        print('Yes')
        exit()
print('No')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = int(input())

n_100 = n // 100
# print(n_100)
n_10 = (n - (n_100 * 100)) // 10
# print(n_10)
n_1 = (n - (n_100 * 100) - (n_10 * 10)) // 1
# print(n_1)

if n_100 == 7 or n_10 == 7 or n_1 == 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()
a = N.count("7")
print("Yes" if a > 0 else "No")

Submission status: Accepted

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

N = int(input())

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

Submission status: Accepted

Solution code:
n = input()

ans = 'No'

for s in n:
    if s == '7':
        ans = 'Yes'

print(ans)

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:
Nstring=input()
# Python3 program to Split string into characters 
def split(word): 
    return [char for char in word]  
Numberlist=split(Nstring)
flag=0
if int(Numberlist[0])==7:
  flag=1
if int(Numberlist[1])==7:
  flag=1
if int(Numberlist[2])==7:
  flag=1
if flag==1:
  print('Yes')
else:
  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()
if '7' in s:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def main():
    N = input()

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
def digit(n):
    while n:
        if n%10==7:
            return True
        n//=10
    return False
n=int(input())
if digit(n):
    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:
a, b, c = input()
if a == '7' or b == '7' or c == '7':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import itertools
##print(ord("A"))
s = input()
if "7" in s:
    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()

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

print(ans)

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().rstrip()

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
S = input()
print("Yes") if S.find("7") != -1 else print("No")

Submission status: Accepted

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

Submission status: Accepted

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

is_lucky_7 = False
for n in n_list:
    if int(n) == 7:
        is_lucky_7 = True
        break
if is_lucky_7:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
S = int(input())

a = S//100
b = (S%100)//10
c = ((S%100)%10)

if a == 7 or b ==7 or c ==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:
s = input()
print("Yes" if s.find("7") != -1 else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    n = input()
    ns = str(n)
    nsl = list(ns)
    if '7' in nsl:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import numpy as np
import sys
import math
# "n = map(int,input().split())

n = input()

for x in n:
    if x == "7":
        print("Yes")
        sys.exit()

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()
flag = 0
for i in range(len(N)):
  if int(N[i]) == 7:
    flag = 1
if flag == 1:
  print('Yes')
if flag == 0:
  print('No')

Submission status: Accepted

Solution code:
#A
h =list(input() )
z = False
for x in h:
    if x =="7":
        z =True
        break
if z ==True:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = list(map(str, input()))

count = 0
for i in N:
    if i == "7":
        count += 1

    else:
        continue

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

Submission status: Accepted

Solution code:
s=input()
print("Yes")if "7" in s 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 = input()
if N[0] == "7" or N[1] == "7" or N[2] == "7":
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

s = stdin.readline().rstrip()

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from collections import defaultdict
import math
# N, K = map(int, input().split(' '))
N = input()
if N[0] != '7':
    if N[1] != '7':
        if N[2] != '7':
            print('No')
            exit()
print('Yes')

Submission status: Accepted

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

find = False
for c in n:
    if c == '7':
        find = True
if find:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def main():
    S = input()

    return '7' in S

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
# 整数の入力
n = input()
if n[0] == '7' or n[1] == '7' or n[2] == '7':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
num = list(input())
if '7' in num:
  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()

flag = False

if N[0] == "7":
    flag = True

if N[1] == "7":
    flag = True

if N[2] == "7":
    flag = True


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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 12 20:58:59 2020

@author: H_Hoshigi
"""

N = input()
answer = False
for i in range(len(N)):
    if N[i] == "7":
        answer = True
if answer:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
x = list(str(input()))
ans = 1
for i in range(len(x)):
    if x[i] == "7":
        ans = 0
        break

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

Submission status: Accepted

Solution code:
import sys

N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
flag = False
for s in n:
    if s == "7":
        flag = True
        break

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
s = input()
i = 0
l = [s[0], s[1],s[2]]
for x in l:
    if int(x) == 7:
        i += 1

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

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=list(input())
if n[0]=='7' or n[1]=='7' or n[2]=='7':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
from sys import stdin

# 1行だけ読むやつ

N = stdin.readline().rstrip().split()

list_N = list(str(N[0]))

flag = False
for i in list_N:
    if i == '7':
        flag = True

if flag:
    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()
print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

res = False
for s in N:
    if s == '7':
        res = True
        break

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

Submission status: Accepted

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

import sys


def input():
    return sys.stdin.readline()


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

    str_n = str(n)

    for s in str_n:
        if s == "7":
            print("Yes")
            exit()

    print("No")


if __name__ == "__main__":
    resolve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print("Yes" if input().count('7') 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()
N_0 = N[0]
N_1 = N[1]
N_2 = N[2]

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())

print('Yes' if '7' in 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()
flag = 0
for i in n:
    if i == '7': flag = 1; break;
if(flag == 1): print("Yes")
else: print("No")

Submission status: Accepted

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