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:
# coding:utf-8

import sys
import math
import time
#import numpy as np
import collections
from collections import deque
from collections import Counter
import queue
import copy
import bisect
import heapq

#sys.setrecursionlimit(10**7)
#N, Q = map(int, input().split())
#G = [list(input()) for i in range(H)]
#INF = V * 10001
#A = [int(i) for i in input().split()]
#AB = [list(map(int, input().split())) for _ in range(K)]


N = str(input())
ans = "No"

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
if s[0] == '7':
    print('Yes')
    exit()
elif s[1] == '7':
    print('Yes')
    exit()
elif s[2] == '7':
    print('Yes')
    exit()
print('No')

Submission status: Accepted

Solution code:
N = input()

flag = 0

if N[0] == '7':
    flag = 1
if N[1] == '7':
    flag = 1
if N[2] == '7':
    flag = 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def SI(): return sys.stdin.readline()[:-1]

def main():
    n=SI()
    if "7" in n:print("Yes")
    else:print("No")

main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
n_100 = n // 100
n_10 = (n-n_100*100) // 10
n_1 = n-n_100*100-n_10*10

if n_100==7 or n_10==7 or n_1==7:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s = input()
res = False
for c in s:
  if c == '7':
    res = True
    break
if res:
  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:
#[int(i) for i in input().split()]
n = input()
try:
    a = n.index("7")
    print("Yes")
except:
    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()

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

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

Submission status: Accepted

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

Ans="No"
for i in range(len(N)):
    if N[i]=="7":
        Ans="Yes"

print(Ans)

Submission status: Accepted

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


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

F = str(N)

if F.count("7") > 0:
	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 = input()
b = False
for i in range(3):
    if n[i] == '7':
        b = True
        break
if b:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# coding: utf-8

# 標準入力<str>
N = input()

ans = "No"

for n in range(3):
  if N[n - 1] == "7":
    ans = "Yes"

print(ans)

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:
#!/usr/bin/env python3
from collections import defaultdict,deque
from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
import sys, random, itertools, math
sys.setrecursionlimit(10**5)
input = sys.stdin.readline
sqrt = math.sqrt
def LI(): return list(map(int, input().split()))
def LF(): return list(map(float, input().split()))
def LI_(): return list(map(lambda x: int(x)-1, input().split()))
def II(): return int(input())
def IF(): return float(input())
def S(): return input().rstrip()
def LS(): return S().split()
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float("INF")

#solve
def solve():
    n = S()
    if "7" in n:
        print("Yes")
    else:
        print("No")
    return


#main
if __name__ == '__main__':
    solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin 
n = stdin.readline().rstrip()
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
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(N: int):
    if N % 10 == 7 or (N // 10) % 10 == 7 or (N // 100) == 7:
        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 = 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:
s=str(input())
for i in range(3):
    if s[i]=="7":
        print("Yes")
        break
else:
    print("No")

Submission status: Accepted

Solution code:
# 2つの入力を空白で分割し、数値化
s = input()

for c in s:
    if c == "7":
        print("Yes")
        exit(0)
    else:
        pass

print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(input())

if a[0] == "7":
    print("Yes")
    exit()

if a[1] == "7":
    print("Yes")
    exit()

if a[2] == "7":
    print("Yes")
    exit()

print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

N = sys.stdin.readline().strip()
flag = False
for n_i in N:
    if n_i == "7":
        flag = True
        break

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

Submission status: Accepted

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

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()
for ind in range(3):
    if n[ind] == "7":
        print("Yes")
        exit()
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:
import sys
input = lambda: sys.stdin.readline().rstrip() 

def resolve():
    N = input()

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

if __name__ == '__main__':
    resolve()

Submission status: Accepted

Solution code:
n = str(input())
l = list()
for s in n:
    l.append(s)

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

Submission status: Accepted

Solution code:
n = list(map(int, input()))

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

Submission status: Accepted

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


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



if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = list(map(int,input()))

ans = "No"

for num in n:
    if num == 7:
        ans = "Yes"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()
cnt=0
for i in range(len(n)):
    if n[i]=="7":
        cnt +=1

if cnt > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

def main():
    s=int(input())
    ans=0
    if s%10==7:
        ans=1
    if (s//10)%10==7:
        ans=1
    if s//100==7:
        ans=1
    if ans:
        print("Yes")
    else:
        print("No")

main()

Submission status: Accepted

Solution code:
N = input()
flag=0
for i in N:
    if i=="7":
        flag=1

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

Submission status: Accepted

Solution code:

#ライブラリインポート
from collections import defaultdict

con = 10 ** 9 + 7
#入力受け取り
def getlist():
	return list(map(int, input().split()))

#処理内容
def main():
	N = list(input())
	if N[0] == "7" or N[1] == "7" or N[2] == "7":
		print("Yes")
	else:
		print("No")



if __name__ == '__main__':
	main()

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(700000)

def s_in():
    return input()

def n_in():
    return int(input())

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

def print_l(l):
    print(' '.join(map(str, l)))

class Interval():
    def __init__(self, li):
        self.li = li
        self.n = len(li)
        self.sum_li = [li[0]]
        for i in range(1, self.n):
            self.sum_li.append(self.sum_li[i-1] + li[i])

    def sum(self, a, b=None):
        if b is None:
            return self.sum(0, a)

        res = self.sum_li[min(self.n-1, b-1)]
        if a > 0:
            res -= self.sum_li[a-1]
        return res

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

N = input()

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

print('No')

Submission status: Accepted

Solution code:
n = int(input())
a = n // 100
n = n - a * 100
b = n // 10
c = n - b * 10
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" or N[1] =="7" or N[2] == "7":
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def calc(N):
    if N // 100 == 7 or (N // 10) % 10 == 7 or N % 10 == 7:
        return 'Yes'
    else:
        return 'No'


N = int(input())
print(calc(N))

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:
import sys
input=sys.stdin.readline
#from collections import defaultdict
#d = defaultdict(int)
#import fractions
#import math
#import collections
#from collections import deque
#from bisect import bisect_left
N = int(input())
#A = list(map(int,input().split()))
#S = list(input())
#S.remove("\n")
#N,M = map(int,input().split())
#S,T = map(str,input().split())
#A = [int(input()) for _ in range(N)]
#S = [input() for _ in range(N)]
#A = [list(map(int,input().split())) for _ in range(N)]
a = N // 100
N = N - a * 100
b = N // 10
N = N - b * 10
if a == 7 or b == 7 or N == 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:
n = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

temp = str(N)

if temp.count("7"):
        print("Yes")
else:
        print("No")

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=int(input())
a=N%10
b=((N-a)//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 = input()
ans = 'Yes' if '7' in n else 'No'
print(ans)

Submission status: Accepted

Solution code:
N=input()

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

Submission status: Accepted

Solution code:
s = str(input())

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

Submission status: Accepted

Solution code:
def mapint_inp():
    return map(int, input().split())

def intinp():
    return int(input())

N = int(input())

ans = 0
for d in str(N):
    if d == "7":
        ans += 1

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

Submission status: Accepted

Solution code:
n = input()
l = []
for i in range(3):
  l.append(n[i])
print("Yes"*("7" in l)+"No"*(1-("7" in l)))

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())
N_str=set(str(N))
if "7" in N_str :
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = list(input())

# print(n)
ans = "No"

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

print(ans)

Submission status: Accepted

Solution code:
string = str(input())
key = 0
for i in range(3):
    if(string[i] == '7'):
        key = 1
if(key == 0):
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
s = input()
flag = 0

for ss in s:
    if(ss == "7"):
        flag = 1

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

Submission status: Accepted

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
# from fractions import gcd
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from functools import reduce
from bisect import bisect_left, insort_left
from heapq import heapify, heappush, heappop

INPUT = lambda: sys.stdin.readline().rstrip()
INT = lambda: int(INPUT())
MAP = lambda: map(int, INPUT().split())
S_MAP = lambda: map(str, INPUT().split())
LIST = lambda: list(map(int, INPUT().split()))
S_LIST = lambda: list(map(str, INPUT().split()))

sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7


def main():
    N = INPUT()

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

def main():

    n = stdin.readline().rstrip()
    flag = bool()

    for st in n:
        if st == '7':
            flag = True

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



if __name__ == "__main__":
    main()

Submission status: Accepted

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


main()

Submission status: Accepted

Solution code:
def Int():
    return int(input())
def Ints():
    return map(int,input().split())
def IntList():
    return list(Ints())
def IntMat(N):
    return [IntList() for i in range(N)]

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

Submission status: Accepted

Solution code:
N = input()
a = list(N)
for i in range(len(a)):
    a[i] = int(a[i])
p = 1
for i in range(len(a)):
    if a[i] == 7:
        p = p*0
if p == 0:
    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:
n = list(input())
flag = False
for i in n:
    if i =="7":
        flag = True
if flag:print("Yes")
else: print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())

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

Submission status: Accepted

Solution code:
N1,N2,N3 = map(str,input())

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

Submission status: Accepted

Solution code:
import sys

N=input()

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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'
for i in range(len(n)):
    if n[i] == '7':
        ans = 'Yes'
print(ans)

Submission status: Accepted

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

import sys

DEBUG = False

def read(t):
    return t(sys.stdin.readline().rstrip())


def read_list(t, sep = " "):
    return [t(s) for s in sys.stdin.readline().rstrip().split(sep)]


def dprint(*args, **kwargs):
    if DEBUG:
        print(*args, **kwargs)
    return


def main():
    n = read(str)
    if "7" in list(n):
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

#N, K, C = map(int, readline().split())  int
#S = read().rstrip().decode()  string
# N =int(read())
#print(C,A,B)

x=read().rstrip().decode()

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

Submission status: Accepted

Solution code:
import math
import collections
import sys

input = sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def LI2(): return [int(input()) for i in range(n)]
def MXI(): return [[LI()]for i in range(n)]

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from collections import defaultdict
from collections import deque
from string import ascii_uppercase
import sys, bisect, math, heapq

stdin = sys.stdin
read_int = lambda : list(map(int,stdin.readline().split()))
read_str = lambda : stdin.readline().rstrip()

S = read_str()

def solve():
    return S[0] == '7' or S[1] == '7' or S[2] == '7'

if __name__ == "__main__":
    if solve():
        print('Yes')
    else:
        print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
N = sys.stdin.readline().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:
n = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

flag = 0 
for i in n:
    if i == "7":
        flag = 1 

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

Submission status: Accepted

Solution code:
def main():
    n = tuple([int(t)for t in list(input())])

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# FileName: 	A
# CreatedDate:  2020-04-12 21:00:37 +0900
# LastModified: 2020-04-12 21:01:31 +0900
#


import os
import sys


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


if __name__ == "__main__":
    main()

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:
def main():

    N = input()

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

if __name__ == "__main__":
    main()

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 = input()
for i in N:
    if(i=="7"):
        print("Yes")
        exit(0)

print("No")

Submission status: Accepted

Solution code:
import sys
import re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce


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


def INT(): return int(input())


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


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


def ZIP(n): return zip(*(MAP() for _ in range(n)))


sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7


def main():
    n = list(input())
    li = [int(x) for x in n if int(x) == 7]
    if len(li) > 0:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = int(input())

import sys

while N != 0:
    keta = N % 10
    if keta == 7:
        print('Yes')
        sys.exit(0)
    N //= 10
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()
for i in list(N):
    if 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:
a=str(input())
ans="No"
for i in a:
    if i=="7":
        ans="Yes"
        break
print(ans)

Submission status: Accepted

Solution code:

N = str(input())

if str(7) in N:
    print("Yes")

else:
    print("No")

Submission status: Accepted

Solution code:
import sys, re
import math
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

# 整数リストを連結表示    print(''.join(map(str, list)))

# -*- coding: utf-8 -*-

n = input()
ans = "No"

for x in n:
    if x == "7":
        ans = "Yes"

print(ans)

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()
r = False
for n in N:
    if n == "7":
        r = True
if r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

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

n = int(input())
result = "7" in str(n)
print("{}".format("Yes" if result else "No"))

Submission status: Accepted

Solution code:
n=input()
c=0
for i in range(3):
    if int(n[i])==7:
        c+=1
if c==0:
    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 = input()
ret = 'No'
for c in N:
  if c == '7':
    ret = 'Yes'
print(ret)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
#a,b = map(int, input().split())
#s = input()
res = a.count('7')

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input()
if int(a[0])==7 or int(a[1])==7 or int(a[2])==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:
N = str(input())

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

Submission status: Accepted

Solution code:
N = list(input())
ans=0

for i in range(3):
  if N[i] == "7":
    ans =1
    
if ans ==1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n = input()
flag = False
for i in n:
    if i == '7':
        flag = True
        break
if flag == True:
    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 n[0] == "7" or n[1] == "7" or n[2]=="7":
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
n = input()
result = False
for ni in n:
    if ni == '7':
        result = True
if result:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# Code for A - Lucky 7
# Use input() to fetch data from STDIN

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

solve()

Submission status: Accepted

Solution code:
n=list(input())
for i in n:
    if(int(i)==7):
        print('Yes')
        exit()
    else:
        continue
print('No')