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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
a = input()

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

Submission status: Accepted

Solution code:
a = int(input())
b = 0
for i in str(a):
    if i=="7":
        b+=1
if b>0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = list(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:
N = str(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:

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = list(input())
mylist=[int(n)for n in N]

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

Submission status: Accepted

Solution code:
N=input()
#print (N.find('7'))

if N.find('7') !=-1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys 
import numpy as np
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
N = readline().decode().rstrip()
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:
if '7' in input():
  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 = int(input())

digit = []

div_num = 10

while(True):
    digit.append(N % div_num)
    if(N % div_num == N):
        break;
    N //= div_num 

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10 ** 9)
# input = sys.stdin.readline    ####
def int1(x): return int(x) - 1
def II(): return int(input())
def MI(): return map(int, input().split())
def MI1(): return map(int1, input().split())
def LI(): return list(map(int, input().split()))
def LI1(): return list(map(int1, input().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def MS(): return input().split()
def LS(): return list(input())
def LLS(rows_number): return [LS() for _ in range(rows_number)]
def printlist(lst, k=' '): print(k.join(list(map(str, lst))))
INF = float('inf')
# from math import ceil, floor, log2
# from collections import deque
# from itertools import combinations as comb, combinations_with_replacement as comb_w, accumulate, product, permutations
# from heapq import heapify, heappop, heappush
# import numpy as np    # cumsum
# from bisect import bisect_left, bisect_right

def solve():
    N = LS()

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


if __name__ == '__main__':
    solve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=str(input())
for i in range(len(x)):
  if int(x[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 = input()

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

print('No')

Submission status: Accepted

Solution code:
n=int(input())

while True:
    if n%10==7:
        print('Yes')
        break
    n=n//10
    if n==0:
        print('No')
        break

Submission status: Accepted

Solution code:
def index(n):
    result = "Yes" if '7' in n else "No"
    return result

print(index(str(input())))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
from sys import exit

for i in input():
    if i == '7':
        print('Yes')
        exit()

print('No')

Submission status: Accepted

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

elif k%10 == 7:
  print("Yes")

elif n//100 == 7:
  print("Yes")

else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

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:
#162A
#Lucky 7

n=input()

if '7' in n:
    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:
#!/usr/bin/env python3
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


def sum_of_arithmetic_progression(s, d, n):
    return n * (2 * s + (n - 1) * d) // 2


def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)


def lcm(a, b):
    g = gcd(a, b)
    return a / g * b


def solve():
    N = input()
    if "7" in N:
        print(Yes)
    else:
        print(No)


def main():
    solve()


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()

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:
flag = False
for i in input():
  if i == '7':
    print('Yes')
    flag = True
    break
if not flag:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():

    N = input()
    if "7" in N: return "Yes"
    return "No"

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

Submission status: Accepted

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

Submission status: Accepted

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

print("No")

Submission status: Accepted

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

n = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input())
x = 0
for i in range(3):
    if n[i] == '7':
        x += 1;

if x == 0:
    print('No');
else:
    print('Yes');

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
flag = 0

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

Submission status: Accepted

Solution code:
n = input()

a = False

for i in n:
  if i == '7':
    a = True

print('Yes' if a 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:
    if n % 10 == 7:
        print('Yes')
        break
    n = n // 10
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 = "No"
for i in range(3):
  if n[i] == "7":
    ans = "Yes"
    break
print(ans)

Submission status: Accepted

Solution code:
n = list(str(int(input())))
c = 0

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
toprint = False
while a > 0 :
 last_digit = a % 10
 a = a // 10
 if last_digit == 7 :
   toprint = True
 
if toprint == True :
 print ("Yes")
else :
 print ("No")

Submission status: Accepted

Solution code:
n=int(input())
thou=n//100
hund=(n-(thou*100))//10
ones=n-((thou*100)+(10*hund))
if (thou==7) or (hund==7) or (ones==7):
    print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
toprint = False
while N > 0 :
  last_digit = N % 10
  N = N // 10
  if last_digit == 7 :
    toprint = True

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!usr/bin/env pypy3
from collections import defaultdict, deque
from heapq import heappush, heappop
from itertools import permutations, accumulate
import sys
import math
import bisect


def LI(): return [int(x) for x in sys.stdin.readline().split()]


def I(): return int(sys.stdin.readline())


def LS(): return [list(x) for x in sys.stdin.readline().split()]


def S():
    res = list(sys.stdin.readline())
    if res[-1] == "\n":
        return res[:-1]
    return res


def IR(n):
    return [I() for i in range(n)]


def LIR(n):
    return [LI() for i in range(n)]


def SR(n):
    return [S() for i in range(n)]


def LSR(n):
    return [LS() for i in range(n)]


sys.setrecursionlimit(1000000)


def main():
    a = list(input())
    print("Yes" if "7" in a else "No")


main()

Submission status: Accepted

Solution code:
string = input()

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

Submission status: Accepted

Solution code:
i = input()

print(["No", "Yes"]["7" in i])

Submission status: Accepted

Solution code:
n = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    S = list(str(input()))
    N = len(S)
    for i in range(N):
        if S[i] == '7':
            print('Yes')
            return
    print('No')
main()

Submission status: Accepted

Solution code:
def main():
    l = list(str(input()))
    num = len(l)
    for i in range(num):
        if l[i] == '7':
            print('Yes')
            return
    print('No')
main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
n = input()
ans = 'No'

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    from builtins import int, map, list, print
    import sys
    sys.setrecursionlimit(10 ** 6)

    input = (lambda: (sys.stdin.readline()).rstrip())
    input_list = (lambda: input().split())
    input_number = (lambda: int(input()))
    input_number_list = (lambda: list(map(int, input_list())))

    N = input()
    print('YNeos'[not '7' in N::2])

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = str(input())

for i in N:
    if i == "7":
        print("Yes")
        exit() #プログラムを終了させる

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:
import sys
read = sys.stdin.buffer.read
#input = sys.stdin.readline
#input = sys.stdin.buffer.readline

#sys.setrecursionlimit(10**9)
#from functools import lru_cache

def RD(): return sys.stdin.read()
def II(): return int(input())
def MI(): return map(int,input().split())
def MF(): return map(float,input().split())
def LI(): return list(map(int,input().split()))
def LF(): return list(map(float,input().split()))
def TI(): return tuple(map(int,input().split()))
# rstrip().decode('utf-8')


def main():
	a=input()
	ans="No"
	
	for i in range(3):
		if a[i]==str(7):
			ans="Yes"
	
	print(ans)
	
	
if __name__ == "__main__":
	main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 162 A

n = input()

if '7' in n:
    print("Yes")
else:
    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=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 = list(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()

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

Submission status: Accepted

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

Submission status: Accepted

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

flag=0
for i in range(len(k)):
    if k[i]=='7':
        flag=1
        print("Yes")
        break
    else:
        flag=0
        
if flag==0:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())

answer = 0
for i in range(len(N)):
    if int(N[i]) == 7:
        answer = 1
if answer == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()

ans='No'

if '7' in n:
    ans='Yes'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
a=input()
if("7" in a):
  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:
if "7" in input():
  ans = "Yes"
else:
  ans = "No"
print(ans)

Submission status: Accepted

Solution code:
a = input()
f = 0
for i in range(3) :
    c = a[i]
    if c == '7' :
        f = 1
if f == 0 :
    print("No")
if f == 1 :
    print("Yes")

Submission status: Accepted

Solution code:
n = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
N = input()
numlist = []
for i in range(len(N)):
    numlist.append(int(N[i]))

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

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

Submission status: Accepted

Solution code:
N = str(input())

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

print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
n = list(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:
def main():
    n = int(input())
    if "7" in str(n):
        print('Yes')
    else:
        print('No')


if __name__=="__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
flag = 0
    # １文字ずつ数値化し配列にする。
array = list(map(int, s))
    # 合計値を返す
for i in array:
  if i == 7:
    flag = 1
if flag ==1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n = input()

div_n = n.replace('',' ').split()

if '7' in div_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 '7' in n else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=input()
numbers=list(N)
for A in numbers:
  if A=='7':
    print('Yes')
    break
if A!='7':
  print('No')

Submission status: Accepted

Solution code:
n = list(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:
def solve():
    N = list(input())
    print('NYoe s'['7' in N::2])


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
N=input()
if N.count('7')>=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:
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do(): 
    s=STR()
    if '7' in s:
        print('Yes')
    else:
        print('No')
if __name__ == '__main__':
    do()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N=list(input())

ans='No'

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = list(input())
Triger = 0
for i in N:
  if i == "7":
    Triger += 1
    break
if Triger == 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:
N=list(input())
if '7' in N:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n=input("")
x=0

while x<3:
    if n[x]=="7":
        print("Yes")
        break
    x=x+1
    if x==3: 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("")
x=0
yn="No"

while x<3:
    if n[x]=="7":
        yn="Yes"
        break
    x=x+1

print(yn)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input("")
x=0
yn="No"

while x<3:
    if n[x]=="7":
        yn="Yes"
    x=x+1

print(yn)

Submission status: Accepted

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

Submission status: Accepted

Solution code:

N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

n = (int)(input())

ret = "No"
while n > 0:
    if n % 10 == 7:
        ret = "Yes"
        break
    n = math.floor(n / 10)

print("{}".format(ret))

Submission status: Accepted

Solution code:
S=int(input())
result = 0
while S >0:
    S, m = divmod(S,10)
    if m ==7:
        result = 1
        break
if result ==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:
num = input()

for i in range(len(num)):
  if(num[i] == "7"):
    print("Yes")
    break
  elif(len(num)-1 == i):
    print("No")
    break

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#問題文3桁の整数 Nが与えられます。
#Nのいずれかの桁に数字の 7は含まれますか？
#含まれるなら Yes を、含まれないなら No を出力してください。

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

#117
#123
#777

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=list(input())

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

Submission status: Accepted

Solution code:
n = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# A - Lucky 7
N = input()
if '7' in N:
    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:
A = input()
a = 'No'
if '7' in A:
  a = 'Yes'
print(a)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

n = str(input())

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

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

if re.search(r'7', input()):
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
H = int(N/100)
T = int((N-H*100)/10)
S = int((N-H*100-T*10))
if H == 7 or T ==7 or S == 7:
  print('Yes')
else :
  print('No')

Submission status: Accepted

Solution code:
N=int(input())

N2=N//100
N1=(N-N2*100)//10
N0=(N-N2*100-N1*10)
    
if N2==7 or N1==7 or N0==7:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

has_7 = '7' in str(n)

if has_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:
S = input()
# シンプルに文字列のままでok
if '7' in S:
    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:
if "7" in input():
    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:
# coding: utf-8
import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

S = sr()
bl = S.find('7') != -1
print('Yes' if bl else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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