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

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

Submission status: Accepted

Solution code:
str=input()
check=0
for s in str:
  if s=="7":
    check+=1
if check==0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
n_100 = int(n / 100)
n_10 = int((n - n_100*100) / 10)
n_1 = int(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:
n=input()
if '7' in n:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
n1 = n % 10
n2 = n // 100
n3 = n // 10
n4 = n3 % 10
if n1 == 7 or n2 == 7 or n4 == 7:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
number = input()
numbers = list(number)
checkN = 0
for n in numbers:
    checkN += 1
    checkNum = n
    if int(checkNum) == 7:
        print("Yes")
        break
    if  checkN == 3:
        print("No")

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:
N=str(input())
for i in range(len(N)):
  if N[i]=='7':
    print("Yes")
    break
  if i==len(N)-1:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int( input() )

while n > 0:
    if n%10 == 7:
        print("Yes")
        exit()
    else:
        n = int( n / 10 )

print("No")

Submission status: Accepted

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

if __name__ == '__main__':
    quest_a()

Submission status: Accepted

Solution code:
input_str=input()

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

Submission status: Accepted

Solution code:
def main():
	s = int(input())

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

if __name__ == '__main__':
	main()

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
n = int(input())
if n // 100 == 7:
    print("Yes")
    sys.exit()
n = n % 100
if n // 10 == 7:
    print("Yes")
    sys.exit()
n = n % 10
if n == 7:
    print("Yes")
    sys.exit()
print("No")

Submission status: Accepted

Solution code:
def calc(N):
    for n in N:
        if n == '7':
            print('Yes')
            return 0
    
    print('No')
    return 0

calc(input())

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:
n = str(input())
# print(n[0])


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
N = int(input())
A = math.floor((N / 100))
B = math.floor(((N - (100*A)) / 10))
C = (N-100*A-10*B)



if A == 7:
    print("Yes")
elif B == 7:
    print("Yes")
elif C == 7:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
 
n = str(n)
 
flag = 0
 
for i in n:
  if(i != '7'):
    flag = 0
  else:
    flag = 1
    break
 
    
if flag == 0:
  print('No')
else :
  print('Yes')

Submission status: Accepted

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


if __name__ == '__main__':
    solve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())
flag = False
for i in N:
    if i == '7':
        flag = True
if flag:
    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()
s = 'Yes'
for i in N:
  if i=='7':
    break
else:
  s='No'
print(s)

Submission status: Accepted

Solution code:
N = str(input())

if len(N) == 3 and '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()

if len(N) == 3 and '7' in str(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:
num = input()
arr = list(num)
if '7' in list(num):
    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()
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" :
    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 n.count("7") >= 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# import single number
def import_number():
    return int(input())

# import string
def import_string():
    return str(input())

# import n line int
def import_int(n):
    return [int(input()) for i in range(n)]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys


try:
    sys.stdin = open(sys.path[0] + '\\input.txt', 'r')
    sys.stdout = open(sys.path[0] + '\\output.txt', 'w')
except FileNotFoundError:
    pass


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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

N = sys.stdin.readline()

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

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

Submission status: Accepted

Solution code:
# python 3.8.2用
import math
import fractions
import bisect
import collections
import itertools
import heapq
import string
import sys
import copy
from decimal import *
from collections import deque
from math import gcd
sys.setrecursionlimit(10**7)
MOD = 10**9+7
INF = float('inf') #無限大
def lcm(a,b):return (a*b) // gcd(a,b) #最小公倍数
def iin(): return int(sys.stdin.readline()) #整数読み込み
def ifn(): return float(sys.stdin.readline()) #浮動小数点読み込み
def isn(): return sys.stdin.readline().split() #文字列読み込み
def imn(): return map(int, sys.stdin.readline().split()) #整数map取得
def imnn(): return map(lambda x:int(x)-1, sys.stdin.readline().split()) #整数-1map取得
def fmn(): return map(float, sys.stdin.readline().split()) #浮動小数点map取得
def iln(): return list(map(int, sys.stdin.readline().split())) #整数リスト取得
def iln_s(): return sorted(iln()) # 昇順の整数リスト取得
def iln_r(): return sorted(iln(), reverse=True) # 降順の整数リスト取得
def fln(): return list(map(float, sys.stdin.readline().split())) # 浮動小数点リスト取得
def join(l, s=''): return s.join(l) #リストを文字列に変換
def perm(l, n): return itertools.permutations(l, n) # 順列取得
def perm_count(n, r): return math.factorial(n) // math.factorial(n-r) # 順列の総数
def comb(l, n): return itertools.combinations(l, n) # 組み合わせ取得
def comb_count(n, r): return math.factorial(n) // (math.factorial(n-r) * math.factorial(r)) #組み合わせの総数
def two_distance(a, b, c, d): return ((c-a)**2 + (d-b)**2)**.5 # 2点間の距離
def m_add(a,b): return (a+b) % MOD
def lprint(l): print(*l, sep='\n')
def sieves_of_e(n):
    is_prime = [True] * (n+1)
    is_prime[0] = False
    is_prime[1] = False
    for i in range(2, int(n**0.5)+1):
        if not is_prime[i]: continue
        for j in range(i * 2, n+1, i): is_prime[j] = False
    return is_prime

N = input()

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

Submission status: Accepted

Solution code:
from math import gcd

from math import factorial as f

from math import ceil,floor,sqrt


import bisect
import re
import heapq


from copy import deepcopy
import itertools

from sys import exit

ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

yes = "Yes"
no = "No"

def main():
    n = input()
    for i in n:
        if i == '7':
            print(yes)
            exit()
    print(no)


main()

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:
#ここまでテンプレ
from sys import stdin,setrecursionlimit
setrecursionlimit(10 ** 7)
s = input()
if "7" in s:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()

F = False

for T in N:
    if T == '7':
        F = True
        
if F :
    print('Yes')
else :
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

n = input().rstrip()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

number = list(N)

if int(number[0])==7 or int(number[1])==7 or int(number[2])==7:
    print("Yes")

else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
c = 0
is_ok = False
for n in s:
    if (n == '7'):
        is_ok = True
        break;
if (is_ok):
    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())
if '7' in S:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = list(str(input()))
flag = 0

if '7' in N:
    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 itertools import permutations
import sys
import math
import bisect

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


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


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


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


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


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


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

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


sys.setrecursionlimit(1000000)
mod = 1000000007


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


if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
N = int(input())
A = [0, 0, 0]
bool = 0
for i in range(3):
  A[i] = N % 10
  N = (N - A[i])/10
  if A[i] == 7:
    print('Yes')
    bool = 1
    break
if bool == 0:
    print('No')

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

if a!='':
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
isOK = False
for i in range(3):
    first_digit_num = n % 10
    if(first_digit_num == 7):
        isOK = True
    n //= 10
print("Yes" if isOK else "No")

Submission status: Accepted

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

input_int = input()

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

Submission status: Accepted

Solution code:
N = input()
is_contain = False
for c in N:
        if c == "7":
                is_contain = True
                break

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

Submission status: Accepted

Solution code:
#coding:utf-8

n = int(input())
m = n
ans = 'No'

for i in range(3):
    r = m % 10
    if r == 7:
        ans = 'Yes'
        break
    m = m // 10

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
n = [int(c) for c in N]
for ni in n:
  if ni == 7:
    print("Yes")
    exit()
print("No")

Submission status: Accepted

Solution code:
# coding: utf-8

import sys
import math
import collections
import itertools
from inspect import currentframe
INF = 10 ** 10
MOD = 10 ** 9 + 7
def input() : return sys.stdin.readline().strip()
def gcd(x, y) : return y if x % y == 0 else gcd(y, x % y)
def lcm(x, y) : return (x * y) // gcd(x, y)
def I() : return int(input())
def LI() : return [int(x) for x in input().split()]
def RI(N) : return [int(input()) for _ in range(N)]
def LRI(N) : return [[int(x) for x in input().split()] for _ in range(N)]

N = input()

flag = "No"

if N[0] == "7":
    flag = "Yes"
if N[1] == "7":
    flag = "Yes"
if N[2] == "7":
    flag = "Yes"

print(flag)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    line = str(input())
    print("No" if line.find("7") == -1 else "Yes")
    return


main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input=lambda: sys.stdin.readline().rstrip()
n=list(input())
if "7" in n:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
num = input()

for x in num:
	if x == '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=int(input())
for i in range(3):
    if (N%10)==7:
        break
    N=N//10
if N!=0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
i = str(input())
if "7" in i:
    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:
import re
num = int(input())
if re.search('7', str(num)):
    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:
input_number = int(input())

for i in range(3):
    ans = input_number % 10
    if ans == 7:
        print('Yes')
        break
    input_number = (input_number - ans) / 10
    if i == 2:
        print('No')

Submission status: Accepted

Solution code:
num = int(input())

a = num -(num%100) ## 百のくらい
b = (num - a)%10 ## 1のくらい
c = (num - b)%100 ## 10のくらい

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

Submission status: Accepted

Solution code:
param = input()

ret = None
if '7' in param:
    ret = 'Yes'
else:
    ret = 'No'

print(f'{ret}')

Submission status: Accepted

Solution code:
N = input()

def a(N):
	for c in N:
		if c == "7":
			return "Yes"
	return "No"
 
print(a(N))

Submission status: Accepted

Solution code:
s = input()

ans = "No"

for i in range(3):
    if s[i] == "7":
        ans = "Yes"
        break

print(ans)

Submission status: Accepted

Solution code:

# --- fetch input ---

inputs: list = []
while True:
    try:
        inputs.append(input().strip('\n'))
    except EOFError:
        break

# --- write code below ---

input_number = str(inputs[0])
if '7' in input_number:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

def int_to_charlist(num): # int型の数字をcharの単文字リストでreturn
    return [s for s in str(num)]

string = int_to_charlist(a)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = str(input())
ans = 'Yes' if any([i=='7' for i in a]) else 'No'
print(ans)

Submission status: Accepted

Solution code:
i=int(input())
ans="No"
while i>0:
    rem=i%10
    i=int(i/10)
    if rem==7:
        ans="Yes"
print(ans)

Submission status: Accepted

Solution code:
a = str(input())
ans = 'Yes'if any([i=='7' for i in a]) else 'No'
print(ans)

Submission status: Accepted

Solution code:
N=input()
cnt=N.count('7')

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

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)


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

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

Submission status: Accepted

Solution code:
import math
from collections import defaultdict
ml=lambda:map(int,input().split())
ll=lambda:list(map(int,input().split()))
ii=lambda:int(input())
ip=lambda:input()

"""========main code==============="""

t=ip()
if '7' in t:
    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:
num = input();
if(int(num[-1]) == 7 or int(num[-2]) == 7 or int(num[-3]) == 7):
  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):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N=str(input())
counter=0
for x in range(3):
    if N[x]=='7':
       counter=1
if counter==1:
    print('Yes')

else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
Input_Data = input()

Number = [int(x) for x in list(str(Input_Data))]
Flag = 0

for i in range(3) :
	if Number[i] == 7 :
		Flag = 1
		break

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

Submission status: Accepted

Solution code:
N = input()

n1 = N[:1]
n2 = N[1:2]
n3 = N[2:3]

if (n1=='7') | (n2=='7') | (n3=='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:
N=int(input())
N1=N//100
N2=(N//10)%10
N3=N%10
if N1==7 or N2==7 or N3==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:
#Lucky 7
num=int(input(""))
num3=num//100
num2=num//10%10
num1=num%10
if(num3==7 or num2==7 or num1==7):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
n=str(input())
if n[0]=='7' or n[1]=='7' or n[2]=='7':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
x = input()
x = [int(d) for d in str(x)]

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

Submission status: Accepted

Solution code:
n = int(input())
for i in range(3):
  n_i=n//10**(2-i)
  if(n_i==7):
    print('Yes')
    break
  if(i==2):
    print('No')
  n=n-n_i*10**(2-i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
l = [int(x) for x in list(str(N))]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = int(input())
ans = "No"
for i in range(3):
  reminder = num % 10
  if(reminder==7):
    ans = "Yes"
  num = num/10
  num = int(num)
  
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = (input())
i = N.count("7")
if i >0:
    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:
x = input()

judge = False
for i in range(len(x)):
  if(x[i] == '7'):
    judge = True
    break
    
    
if(judge):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
number = input()

flag = False

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

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

Submission status: Accepted

Solution code:
x=[i for i in input()]
if('7' in x):
  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:
# coding: utf-8

N = input()

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

Submission status: Accepted

Solution code:
s = input()


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = str(input())
flag = False
for i in num:
    if int(i) == 7:
        flag = True
        break

if flag:
    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[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:
import math

a=input()
a=int(a)
hyaku=a/100
hyaku=math.floor(hyaku)
ju=(a-hyaku*100)/10
ju=math.floor(ju)
ichi=(a-hyaku*100-ju*10)
if hyaku==7:
		print('Yes')
elif ju==7:
		print('Yes')
elif ichi==7:
		print('Yes')
else:
		print('No')

Submission status: Accepted

Solution code:
import sys

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


def resolve():
    n = input()

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


if __name__ == '__main__':
    resolve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
n = int(input())

for _ in range(3):
    if n % 10 == 7:
        print('Yes')
        sys.exit(0)
    n = n // 10
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:
num = input()
if "7" in num:
  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:
import sys

N=list(input())

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