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

Submission status: Accepted

Solution code:
S=list(input())

ans='No'
for s in S:
    if s =='7':
        ans='Yes'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**9)

def mi(): return map(int,input().split())
def ii(): return int(input())
def isp(): return input().split()
def deb(text): print("-------\n{}\n-------".format(text))

INF=10**20
def main():
    N=list(input())

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

    print("No")









if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
# coding: utf-8
# 自分の得意な言語で
# Let's チャレンジ！！

S=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

if cnt==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:
print("Yes" if input().count("7") != 0 else "No")

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
n = input()
flag = False

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
ins = lambda: input().rstrip()
ini = lambda: int(input().rstrip())
inm = lambda: map(int, input().split())
inl = lambda: list(map(int, input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = list(input())
b = 0
for i in range(3):
  if n[i]=="7":
    print("Yes")
    b += 1
    break
if b==0:
  print("No")

Submission status: Accepted

Solution code:
#ABC162-A
N=int(input())
x=N//100
y=(N-100*x)//10
z=N-100*x-10*y
if x==7 or y==7 or z==7:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
b = a // 100
c = a // 10 - b * 10
d = a - b * 100 - c * 10
if b != 7 and c != 7 and d != 7:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
ini = lambda : int(input())
inm = lambda : map(int,input().split())
inl = lambda : list(map(int,input().split()))
gcd = lambda x,y : gcd(y,x%y) if x%y else y
def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])
    if arr==[]:
        arr.append([n, 1])
    return arr
def make_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            divisors.append(i)
            if i != n // i:
                divisors.append(n//i)
    divisors.sort()
    return divisors

#maincode-------------------------------------------------
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:

def main():
    s = input()
    flg = False
    for i in s:
        if i == '7':
            flg = True
    if flg:
        print('Yes')
    else:
        print('No')


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import math
def main():
    n = input()
    for nn in n:
        if int(nn) == 7:
            print("Yes")
            return
    print("No")
    return
    

main()

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
    solve()

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

Submission status: Accepted

Solution code:
n = input()

if n.count("7") > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
if '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:
print(['No', 'Yes']['7' in input()])

Submission status: Accepted

Solution code:
N = input()

flag = 0
for i in range(len(N)):
	if N[i] == "7":
		flag = 1
		break

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

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:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
n = 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 = str(input())
if n[0] == '7' or n[1] == '7' or n[2] == '7':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import re
# ABC162
# Lucky 7
n = input()
m = re.search("7", n)
if m:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
a = N // 100
b = N % 10
c = N // 10
d = c % 10
if a ==7 or b == 7 or d ==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:
print('Yes' if '7' in input() else 'No')

Submission status: Accepted

Solution code:
n=str(input())
for i in range(3):
    if n[i] =="7":
        print("Yes")
        break
    if i==2:
        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()
print("Yes" if '7' in N else "No")

Submission status: Accepted

Solution code:
s = input()
ans = "No"
for i in range(3):
    if s[i]=="7" :
        ans = "Yes"

print(ans)

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

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:
score = int(input())
answer = 0
for i in range(3):
    if int(score/(10**i))%10 == 7:
        answer = 1
        break
if answer == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print("7" in input() and "Yes" or "No")

Submission status: Accepted

Solution code:
n = input()
flg = False
for i in range(len(n)):
    if n[i] == '7':
        flg = True
print('Yes') if flg 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:
def main():
    S = input()
    cond = '7' in S
    print('Yes' if cond else 'No')


if __name__ == '__main__':
    main()

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

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

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 list(input()) else "No")

Submission status: Accepted

Solution code:
N = input()

flag = 0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input())
tmp = 0
for i in range(len(n)):
    if n[i] == '7':
        tmp = 1
        break
if tmp == 1:
    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()
r='No'
for i in range(len(n)):
    if n[i]=='7': r='Yes'
print(r)

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

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

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

Submission status: Accepted

Solution code:
N = str(input())

answer = 'No'
for i in range(len(N)):
#    print(N[i])
    if N[i] == '7':
        answer = 'Yes'
print(answer)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

for i in range(3):
    if N[i]=='7':
        print("Yes")
        quit(0)
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 = list(input())

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

Submission status: Accepted

Solution code:
import re
 
str = input()

if re.search("7", str):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
import sys
print('Yes' if '7' in next(sys.stdin) else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, bisect, math, itertools, string, queue, copy
import numpy as np
import scipy
from collections import Counter,defaultdict,deque
from itertools import permutations, combinations
from heapq import heappop, heappush
from fractions import gcd
input = sys.stdin.readline
sys.setrecursionlimit(10**8)
mod = 10**9+7
def inp(): return int(input())
def inpm(): return map(int,input().split())
def inpl(): return list(map(int, input().split()))
def inpls(): return list(input().split())
def inplm(n): return list(int(input()) for _ in range(n))
def inplL(n): return [list(input()) for _ in range(n)]
def inplT(n): return [tuple(input()) for _ in range(n)]
def inpll(n): return [list(map(int, input().split())) for _ in range(n)]
def inplls(n): return sorted([list(map(int, input().split())) for _ in range(n)])

n = input()
a = n.count("7")
ans = "No"
if a > 0:
    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:
s = input()
a = [int(c) for c in s]

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

Submission status: Accepted

Solution code:
s = list(input())

flag = True
for i in range(3):
    if '7' == s[i]:
        print('Yes')
        flag = False
        break
if flag:
    print('No')

Submission status: Accepted

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

def main():

    N = int(input())

    listN = list(map(int, str(N)))

    if 7 in listN:
        ans = 'Yes'

    else:
        ans = 'No'

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n=list(input())

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

Submission status: Accepted

Solution code:
n = input()

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

print('No')

Submission status: Accepted

Solution code:
# abc162_a.py
# https://atcoder.jp/contests/abc162/tasks/abc162_a

# A - Lucky 7 /
# 実行時間制限: 2 sec / メモリ制限: 1024 MB
# 配点 : 100点

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

# 制約
#     100≤N≤999

# 入力
# 入力は以下の形式で標準入力から与えられる。
# N

# 出力
# Nのいずれかの桁に 7が含まれるなら Yes を、含まれないなら No を出力せよ。

# 入力例 1
# 117

# 出力例 1
# Yes

# 117は 1 の位が 7です。

# 入力例 2
# 123

# 出力例 2
# No

# 123は 7を含みません。

# 入力例 3
# 777

# 出力例 3
# Yes


global FLAG_LOG
FLAG_LOG = False


def log(value):
    # FLAG_LOG = True
    # FLAG_LOG = False
    if FLAG_LOG:
        print(str(value))


def calculation(lines):
    # S = lines[0]
    N = int(lines[0])
    # N, M = list(map(int, lines[0].split()))
    # values = list(map(int, lines[1].split()))
    # values = list(map(int, lines[2].split()))
    # values = list()
    # for i in range(N):
    #     values.append(int(lines[i]))
    # valueses = list()
    # for i in range(N):
    #     valueses.append(list(map(int, lines[i+1].split())))

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

    return [result]


# 引数を取得
def get_input_lines(lines_count):
    lines = list()
    for _ in range(lines_count):
        lines.append(input())
    return lines


# テストデータ
def get_testdata(pattern):
    if pattern == 1:
        lines_input = ['117']
        lines_export = ['Yes']
    if pattern == 2:
        lines_input = ['123']
        lines_export = ['No']
    if pattern == 3:
        lines_input = ['777']
        lines_export = ['Yes']
    return lines_input, lines_export


# 動作モード判別
def get_mode():
    import sys
    args = sys.argv
    global FLAG_LOG
    if len(args) == 1:
        mode = 0
        FLAG_LOG = False
    else:
        mode = int(args[1])
        FLAG_LOG = True
    return mode


# 主処理
def main():
    import time
    started = time.time()
    mode = get_mode()
    if mode == 0:
        lines_input = get_input_lines(1)
    else:
        lines_input, lines_export = get_testdata(mode)

    lines_result = calculation(lines_input)

    for line_result in lines_result:
        print(line_result)

    # if mode > 0:
    #     print(f'lines_input=[{lines_input}]')
    #     print(f'lines_export=[{lines_export}]')
    #     print(f'lines_result=[{lines_result}]')
    #     if lines_result == lines_export:
    #         print('OK')
    #     else:
    #         print('NG')
    # finished = time.time()
    # duration = finished - started
    # print(f'duration=[{duration}]')


# 起動処理
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math
N = int(input())
v = False
while N != 0:
    i = N - (N // 10) * 10
    v |= (i == 7)
    N //= 10
if v == True:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
num = []
while n>0:
  num.append(n%10)
  n //= 10

ans = 0
for i in num:
  if i == 7:
    ans+=1
    break
  else:
    ans = 0
    
if ans >= 1:
  print("Yes")
elif ans==0:
  print("No")

Submission status: Accepted

Solution code:
n = list(str(input()))
flag = False
for i in range(len(n)):
    if n[i] == '7':
        flag = True
if flag:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#l = list(map(int, input().split()))

n = input()

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# Generated by https://github.com/kyuridenamida/atcoder-tools
from typing import *
import collections
import itertools
import math
import sys

INF = float('inf')
YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(N: int):
    return [NO, YES]['7' in str(N)]


def main():

    sys.setrecursionlimit(10 ** 6)

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    print(f'{solve(N)}')


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = list(map(int, 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')else'No')

Submission status: Accepted

Solution code:
import sys
N = int(input())
strN = str(N)

if not ( 100 <= N <= 999 ): sys.exit()

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

Submission status: Accepted

Solution code:
import sys

N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=input()

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

Submission status: Accepted

Solution code:
if any(x == '7' for x 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=str(input())
print("YNeos"[not "7" in n::2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
for i in range(3):
  if n[i] == "7":
    print("Yes")
    break
  elif i==2 and n[i]!="7":
    print("No")

Submission status: Accepted

Solution code:
s=input()
ch=False
for i in s:
    if i=="7":ch=True
if ch:print("Yes")
else:print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- conding: utf-8 -*-
N = input()
if '7' in N:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n = input()

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

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

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

print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

n = input().count('7')
if n == 0:
    ans = 'No'
else:
    ans = 'Yes'

print(ans)

Submission status: Accepted

Solution code:
# A Lucky 7

N = input()

for n in N:
  if n == "7":
    print("Yes")
    exit()
else:
  print("No")

Submission status: Accepted

Solution code:
def luckey7():
    # 入力
    N = input()
    # 判別処理
    if '7' in N:
        return 'Yes'
    else:
        return 'No'

result = luckey7()
print(result)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
def main():
    N = input()

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

main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
has_seven = "7" in input()
if has_seven:
  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()

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

Submission status: Accepted

Solution code:
N = input()

ans = 'No'

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

if n//100 != 7 and (n-(n//100)*100)//10 != 7 and n-(n//10)*10 != 7:
  print('No')
else:
  print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**7)
input = sys.stdin.readline

s = input()

for i in range(len(s)):
    if s[i] == '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:
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    N = readline().strip()

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

    return


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)



# %%

Submission status: Accepted

Solution code:
N = input()

ans = "No"
for s in N:
    if s == "7":
        ans = "Yes"
        break
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
for n in N:
  if int(n) == 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:
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())
if n%10==7:
    print("Yes")
    exit()
n//=10
if n%10==7:
    print("Yes")
    exit()
n//=10
if n%10==7:
    print("Yes")
    exit()
print("No")

Submission status: Accepted

Solution code:
N = input()

if N.find('7') >= 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:
N = input()
for s in N:
    if s == "7":
        print('Yes')
        break
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:
for n in input():
  if n == "7":
    print('Yes')
    exit()
print('No')

Submission status: Accepted

Solution code:
A = input()
for a in range(3):
  if A[a] == '7':
    print('Yes')
    break
  if a == 2:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=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()
for s in N:
    if s == '7':
        print('Yes')
        exit()
print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
for _ in range(3):
  if N%10==7:
    print("Yes")
    break
  N //=10
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
S = list(input())
for i in range(3):
  if S[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')