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 = int(input())
a=str(a)
num=a.count('7')
if num>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 s.find("7") != -1:
    print ("Yes")
else:
    print ("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
n1 = int(n[0])
n10 = int(n[1])
n100 = int(n[2])
if n1 != 7 and n10 != 7 and n100 != 7:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
N = int(input())

if str(7)in [str(N)[0],str(N)[1],str(N)[2]]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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


def run():
    if '7' in input():
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    run()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = str(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())
a=(n//100)
b=(n%100)//10
c=(n%100)%10
if a==7 or b==7 or c==7:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
N = sys.stdin.readline()
flag = False
for i in N:
  if i == "7":
    flag = True
    break
if flag:
  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 = list(str(input()))

if n.count('7') != 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

res = False
for i in N:
    if i == '7':
        res = True

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

Submission status: Accepted

Solution code:
N = []
N = input()


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

Submission status: Accepted

Solution code:
N = int(input())
l =[int(x) for x in list(str(N))]
if l[0] == 7 or l[1] == 7 or l[2] == 7:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = input()
i = map(int, i)
if 7 in i:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input().strip()

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

Submission status: Accepted

Solution code:
num = int(input())
lst = []
count = 0
while num > 0:
  if num % 10 == 7:
    count += 1
  num //= 10 
if count == 0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
def main():
  x = int(input())
  
  a = x // 100
  b = (x // 10) % 10
  c = x % 10
  
  if a == 7 or b ==7 or c == 7:
    print('Yes')
  else:
    print('No')
main()

Submission status: Accepted

Solution code:
def resolve():
    A = int(input())
    a = [int(x) for x in list(str(A))]
    if a[0]==7 or a[1]==7 or a[2]==7:
        print("Yes")
    else:
        print("No")
resolve()

Submission status: Accepted

Solution code:
s=input()
count=0
for i in s:
  if i=="7":
    print("Yes")
    count+=1
    break
  else:
    pass
if count==0:
  print("No")

Submission status: Accepted

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

n = list(n)

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

Submission status: Accepted

Solution code:
import sys

inputLine = input()
N=inputLine

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

print("No")

Submission status: Accepted

Solution code:
N = 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:
n = input()
ans = 0
for i in range(3):
    if n[i] == '7':
        print('Yes')
        exit(0)
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()

answer = 'Yes' if '7' in N else 'No'

print(answer)

Submission status: Accepted

Solution code:
S=input()
if S[0]!='7'and S[1]!='7' and S[2]!='7':
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
n_as_list = list(input())
result = "No"

for n in n_as_list:
    if n == "7":
        result = "Yes"

print(result)

Submission status: Accepted

Solution code:
N = input()

def check(N):
    for a in N:
        if a == '7':
            return 'Yes'
            
    return 'No'

print(check(N))

Submission status: Accepted

Solution code:
N = input()
N0 = int(N[0])
N1 = int(N[1])
N2 = int(N[2])
ans = 'No'

if N0 == 7 or N1 == 7 or N2 == 7:
  ans = 'Yes'
print(ans)

Submission status: Accepted

Solution code:
a = int(input())
out =[int(x) for x in str(a)]
ans = out.count(7)
if ans != 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = str(input())

c=0
for i in a:
    if i == '7':
        c += 1

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

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
input = sys.stdin.readline
def main():
    N = input().rstrip("\r\n")
    ans = "No"
    for s in N:
        if s == "7":
            ans = "Yes"
            break
    print(ans)
if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a = list(input())

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
 
YES = "Yes"  # type: str
NO = "No"  # type: str
 
 
def solve(N: int):
    print(YES if '7' in str(N) else 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 = 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:
li = list(input())	
if li.count('7') > 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N1,N2,N3 = input()
if N1 == '7' or N2 == '7' or N3 == '7':
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
s = list(input())

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

Submission status: Accepted

Solution code:
N = input()

result = 'No'

for i in range(len(N)):
    if N[i] == '7':
        result = 'Yes'

print(result)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def qqq(n):

    a = int(n/100)
    if a == 7: 
        return "Yes" 
    
    n %= 100
    b = int(n/10)
    if b == 7:
        return "Yes"
    
    n %= 10
    if n == 7:
        return "Yes"

    return "No"

if __name__ == '__main__':
    N = int(raw_input())
    print qqq(N)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
n_list = list(str(n))
ans = 0
for i in range(3):
    if int(n_list[i]) == 7:
        ans += 1
if ans > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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

    print('Yes')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
if int(n/100) == 7 or n%10 == 7 or int(n/10)%10 == 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:
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
from bisect import bisect_right, bisect_left
import random
from itertools import permutations, accumulate, combinations, product
import sys
import string
from bisect import bisect_left, bisect_right
from math import factorial, ceil, floor, gamma, log
from operator import mul
from functools import reduce
from copy import deepcopy

sys.setrecursionlimit(2147483647)
INF = 10 ** 20
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
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)]
def SRL(n): return [list(S()) for i in range(n)]
def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]
mod = 1000000007


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

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

else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())
result = any([True if n == '7' else False for n in N])
if result:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())

label=0
N1=N//100
N2=(N-N1*100)//10
N3=(N-N1*100-N2*10)

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

Submission status: Accepted

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

N = str(input())
if (N[0] != '7') & (N[1] != '7') & (N[2] != '7'):
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    # 入力パターン．
    # 先に要素数Nが与えられて，その数読み込むパターン
    ### N
    ### a_1 a_2 a_3 ... a_N
    N = input()
    msg = "No"
    for n in N:
        if n == '7':
            msg = "Yes"
  
    print(msg)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=input()

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

Submission status: Accepted

Solution code:
val= list(input())
flag=0
for i in range(0,len(val)):
    if val[i]=="7":
        flag=1
if flag == 1:
    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())
ans = "No"
for i in N:
    if i == "7":
        ans = "Yes"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
N=input()
a = [int(c) for c in N]
count=False
for i in range(len(a)):
    if a[i]==7:
        count=True

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

Submission status: Accepted

Solution code:
ok = False
for i in input():
    if i == "7":
        ok = True

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
flag=0
for i in range(3):
    if(n%10==7):
        print("Yes")
        flag=1
        break
    n=n//10
if(flag==0):
    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()

s = ('7' in n)

if s == True:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
N100 = N // 100
N10 = (N - N100 * 100) // 10
N1 = (N - (N100 * 100 + N10 * 10))

if N100 == 7 or N10 == 7 or N1 == 7:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
integerinput = input()
con = int(integerinput) >= 100 and int(integerinput) <= 999
count = 0
if con == True:
    for i in integerinput:
        if int(i) == 7:
            count = count + 1
        else:
            count = count
    if count >= 1:
        print("Yes")
    else:
        print("No")
else:
    print()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

for n in N:
    if n == '7':
        ans = 'Yes'
        break
    else:
        ans = 'No'

print(ans)

Submission status: Accepted

Solution code:
N = int(input())

s = str(N)

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

Submission status: Accepted

Solution code:
def solve():
    n = int(input())
    return 'Yes' if '7' in str(n) else 'No'

print(solve())

Submission status: Accepted

Solution code:
N = list(input())

flg = 1
for i in N:
  if i == '7':
    flg = 0
if flg == 1 :
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
N = int(input())

N_str = str(N)
flag = 0
for x in N_str:
    if x == '7':
        print('Yes')
        flag = 1
        break

if not flag:
    print('No')

Submission status: Accepted

Solution code:

def a162(n):

    return "Yes" if n.count("7") else "No"

def main():
    n = str(input())
    print(a162(n))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = str(input())
i = 0
while True:
    if i==len(n):
        print('No')
        break
    elif int(n[i]) == 7:
        print('Yes')
        break
    else:
        i+=1

Submission status: Accepted

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

Submission status: Accepted

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

def res():
    for i in a:
        if i == "7":
            return "Yes"
    return "No"

print(res())

Submission status: Accepted

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

Submission status: Accepted

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

if N//100 == 7:
    print('Yes')
elif (N - N//100*100)//10 == 7:
    print('Yes')
elif (N - N //10*10)== 7:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
flg = False

for n in N:
    if n=='7':
        flg = True
if flg:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

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

if __name__ == "__main__":
    resolve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
if s.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 = input()

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

Submission status: Accepted

Solution code:
from sys import stdin
import math
import fractions

n = stdin.readline().rstrip()

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

Submission status: Accepted

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

import sys
import math


debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        # for line in sys.stdin:
        #     lines.append(line)
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    (n, ) = [e for e in lines[0].split(' ')]

    return (n, )


def solve(n):

    result = 'No'
    if '7' in n:
        result = 'Yes'

    
    return  result
    


def main():
    # 出力
    result = solve(*parse_input())
    if isinstance(result, list):
        for r in result:
            print("%s" % r, sep='')
    else:
        print("%s" % result, sep='')

if __name__ == '__main__':

    main()

Submission status: Accepted

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

def format_input(filename = None):
	global n
	if filename == None:
		n = int(input())

	elif filename == '__random__':
		from random import randint as rng
		n = rng(10**2, 10**3 - 1)
		print(n)

def get_answer():
	answer = 'No'
	digits = []
	k = n
	while k > 0:
		digits.append(k % 10)
		k //= 10
	if digits.count(7) > 0:
		answer = 'Yes'
	return answer

if __name__ == '__main__':
	format_input()

	ans = get_answer()
	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:
if __name__ == "__main__":
    str = input()
    if '7' in str:
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
n = input()

flag = False

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

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

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

def main():
    N = input()
    c = N.count('7')
    print('Yes' if c != 0 else 'No')
    return

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def ifif(s):
  if s:
    print("Yes")
  else:
    print("No")

###senkei

def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def rls(): return list(map(str, input().split()))
def pl(a): print(" ".join(list(map(str, a))))
def ma():return map(int,input().split())
from itertools import accumulate as acc
import operator as op
import copy as cp
import math; import numpy
from bisect import bisect_left as bisl
from bisect import bisect_right as bisr
###
n=input()
s=0
if n[0]=='7':
    s=1
if n[1]=='7':
    s=1
if n[2]=='7':
    s=1
ifif(s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# n,m = map(int,sys.stdin.readline().split())
# a = list(map(int,sys.stdin.readline().split()))
# a = [sys.stdin.readline() for s in range(n)]
# s = sys.stdin.readline().rstrip()
# n = int(sys.stdin.readline())
# d = collections.defaultdict(list)
import sys
sys.setrecursionlimit(15000)

s = sys.stdin.readline().rstrip()
if s.find("7") != -1:
    print("Yes")
    exit(0)
print("No")

Submission status: Accepted

Solution code:
from __future__ import print_function

import sys

import re
import array
import copy
import functools
import operator

import math
import string
import fractions
from fractions import Fraction
from fractions import gcd
# fractions.gcd() を用いること
# math.log2()はatcoderでは対応していない．留意せよ．

import collections
import itertools
import bisect

import random
import time

import heapq
from heapq import heappush
from heapq import heappop
from heapq import heappushpop
from heapq import heapify
from heapq import heapreplace
from queue import PriorityQueue as pq
from queue import Queue

from itertools import accumulate

from collections import deque
from collections import Counter

from operator import mul
from functools import reduce

input = sys.stdin.readline


def eprint(*args, **kwargs):
    print(*args, file=sys.stderr, **kwargs)
    return


def lcm(n, m):
    return int(n * m / gcd(n, m))


def coprimize(p, q):
    common = fractions.gcd(p, q)
    return (p // common, q // common)


def combinations_count(n, r):
    r = min(r, n - r)
    numer = reduce(mul, range(n, n - r, -1), 1)
    denom = reduce(mul, range(1, r + 1), 1)
    return numer // denom


def find_gcd(list_l):
    x = reduce(gcd, list_l)
    return x


def main():
    S = input().strip()
    ans="No"
    for i in range(len(S)):
        if S[i]=='7':
            ans="Yes"
    print(ans)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()
s=[int(c) for c in n]
p=0
for i in range(3):
  if s[i]==7:
    p+=1
if p==0:
  print("No")
else:
  print("Yes")

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:
print(['Yes', 'No'][int('7' not in input())])

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

Submission status: Accepted

Solution code:
line=input()

if '7' in line:
    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 'No')

Submission status: Accepted

Solution code:
N = (input())
t=False

for i in range(len(N)):
    if N[i]=="7":
        t=True

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

Submission status: Accepted

Solution code:
#import re
import sys
input = sys.stdin.readline
#import heapq
#import bisect
#from collections import deque
#import math

def main():
    n = input()
    for c in n:
        if c == "7": 
            print("Yes")
            break
    else:
        print("No")

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import os

def main():
    num = input()
    flag = False
    for i in num:
        if i == "7":
            flag = True
    if flag:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
def n0():return int(input())
def n1():return [int(x) for x in input().split()]
def n2(n):return [int(input()) for _ in range(n)]
def n3(n):return [[int(x) for x in input().split()] for _ in range(n)]

n=n0()
print("Yes" if str(n).count('7')>0 else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()

a=n.count('7')

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

Submission status: Accepted

Solution code:
def Main(N):
    return "Yes" if "7" in N else "No"
    

def main():
    N = str(input())
    print(Main(N))

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

A = str(N)
check = 0

for i in range(0,3):
  if(A[i] == '7'):
    check = 1
    
if(check == 1):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = input()

N0 = N[0]
N1 = N[1]
N2 = N[2]


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

Submission status: Accepted

Solution code:
N=input()

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

Submission status: Accepted

Solution code:
N = input()
print ("Yes" if N[0]=="7" or N[1]=="7" or N[2]=="7" 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:
a = input()
len_a =  len(a)
seven = 0
for i in range(len_a):
    if a[i] =="7":
        seven = 1
if  seven == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()

def ans(N):
    for n in N:
        if n == "7":
            return "Yes"
    return "No"

print(ans(N))

Submission status: Accepted

Solution code:
N=input()

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

Submission status: Accepted

Solution code:
#!/usr/bin/python3
# -*- coding: utf-8 -*-
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:
a = input()

cnt = 0

for i in range(3):
    if int(a[i]) == 7:
        cnt += 1
    else:
        pass

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
a = 0
li = list(n)

for i in li:
    if i == '7':
        a += 1
        
if a >= 1:
    print("Yes")
else:
    print('No')

Submission status: Accepted

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