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

Solution (Python):
n=int(input())
data=[10**i for i in range(1,3+1)]
for i in data:
  if n%i==7*(i/10):
    print("Yes")
    exit()
  n-=n%i
print("No")

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

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

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

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

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

Solution (Python):
import sys


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



if __name__ == '__main__':
    main()

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

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

Solution (Python):
x = list(input())
if "7" in x:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
n = int(input())
ans = "No"
for i in range(3):
    if str(n%(10**(i+1)))[0] == "7":
        ans = "Yes"
        break
print(ans)

Solution (Python):
n = input()

flag = 0

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

Solution (Python):






n = input()
flag = 0

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

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

Solution (Python):
N = str(input())

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

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

Solution (Python):
N = str(input())

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

Solution (Python):
N = str(input())

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

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

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

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

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

Solution (Python):
n = str(input())

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

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

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

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

Solution (Python):
N=input("")
bool=False
for i in range(len(N)):
    if int(N[i])==7:
        bool=True

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

Solution (Python):
N = input()

three_letters = [N[0], N[1], N[2]]

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

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

Solution (Python):
N = input()

seven = False
for n in N:
    if n == '7':
        seven = True

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

Solution (Python):
a = str(input())

f=0
for i in range(3):
    if a[i] == "7":
        f =1
if f==1:
    print("Yes")
else:
    print("No")

Solution (Python):
N = input()

seven = False
for n in N:
    if n == '7':
        seven = True

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

Solution (Python):
N = input()

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

Solution (Python):
N = input()

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

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

Solution (Python):
n = str(input())
if "7" in n:
    print("Yes")
elif "7" not in n:
    print("No")

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

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

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

Solution (Python):
N=input()

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

Solution (Python):
import sys

def ep(*params):
    print(*params,file=sys.stderr)
    
inp = input().rstrip()
if inp.find('7') >= 0:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
N=int(input())

digit1=N % 10
digit2=(N // 10) % 10
digit3=N // 100

if digit1 == 7 or digit2 == 7 or digit3 == 7:
    print('Yes')
else:
    print('No')

Solution (Python):
n = input()

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

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

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

Solution (Python):
N = input()

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

Solution (Python):
import sys
N = input()

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

print('No')

Solution (Python):
n = input()

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

Solution (Python):
n = input()

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

Solution (Python):
n = input()

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

Solution (Python):
n = input()
if n.count("7") == 0:
  print("No")
else:
  print("Yes")

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

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

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

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

Solution (Python):
N = int(input())

l = [int(x) for x in list(str(N))]

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

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

Solution (Python):
N = input()

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

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

Solution (Python):
N = input()

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

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

Solution (Python):
s = input()

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

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

Solution (Python):
def main():
        N = int(input())
        N_list = list(str(N))

        if (any(["7" in N_list])):
                print("Yes")
        else:
                print("No")


if __name__=="__main__":
        main()

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

Solution (Python):
S = input()
for c in S:
    if c == '7':
        print("Yes")
        break
else:
    print("No")

Solution (Python):
n = int(input())

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

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

Solution (Python):
l=input()
a ="No"
for s in l:
	if s == "7":
		a="Yes"
print(a)

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

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

Solution (Python):
N=input()

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

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

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

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

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

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

Solution (Python):
from copy import deepcopy
from sys import stdin

def S(): return stdin.readline().rstrip()
def I(): return int(stdin.readline().rstrip())
def LS(): return list(stdin.readline().rstrip().split())
def LI(): return list(map(int,stdin.readline().rstrip().split()))
def R(x):
    r = round(x)
    if r+0.5 <= x:
        r += 1
    return r

n = S()

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

print('No')

Solution (Python):
import sys
input = sys.stdin.readline

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


if __name__ == "__main__":
    main()

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


if __name__ == '__main__':
    main()

Solution (Python):
from sys import stdin, setrecursionlimit


def main():
    input = stdin.buffer.readline
    n = list(input()[:-1].decode())
    print('Yes') if n.count('7') > 0 else print('No')


if __name__ == "__main__":
    setrecursionlimit(10000)
    main()

Solution (Python):
N = input()
l = [char for char in N]
if '7' in l :
  print("Yes")
else :
  print("No")

Solution (Python):
N=int(input())

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

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

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

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

Solution (Python):
N = input()
res = "No"

if "7" in N:
    res = "Yes"
else:
    res = "No"

print(res)

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

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

Solution (Python):
def I(): return (input())
N = I()

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

Solution (Python):
N = input()

N = set(list(N))

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

Solution (Python):
N = input()

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

Solution (Python):
R=input()
print("Yes" if R[0]=="7" else "Yes" if R[1]=="7" else "Yes"if R[2]=="7"else "No")

Solution (Python):
S=list(input())

M="No"
for i in S:
    
    if i == "7":
        M="Yes"
        break
print(M)

Solution (Python):

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

Solution (Python):
N = input()
J = "No"
for i in N:
  if i == "7":
    J = "Yes"
    break
print(J)

Solution (Python):

num = int(input())

N = list(str(num))

keta = len(N)

for i in range(keta):
    if N[i] == "7":
        print("Yes")
        break
else:
    print("No")

Solution (Python):
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))

n = ni()

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

print('No')

Solution (Python):
n = input()

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

lucky(n)

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

Solution (Python):
n = input()

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

Solution (Python):
N = input()
flag = 0
for i in range(len(N)):
    if int(N[i]) == 7:
        flag = flag + 1

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

Solution (Python):
tmp = input().split()
N1 = int(tmp[0][0])
N2 = int(tmp[0][1])
N3 = int(tmp[0][2])

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

Solution (Python):
def solve(string):
    return "Yes" if "7" in string else "No"


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip()))

Solution (Python):
def solve(string):
    return "Yes" if "7" in set(string) else "No"


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip()))

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

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

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

Solution (Python):


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

Solution (Python):
n=input()

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

Solution (Python):

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

Solution (Python):
a=input()

count = 0

for i in range(len(a)):
	if (a[i] == '7'):
		count +=1
	else:
		count +=0

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

Solution (Python):
N = input()
ret = 'No'
for n in N:
    if n == '7':
        ret = 'Yes'

print(ret)

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

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

Solution (Python):
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = [i for i in input()]
print('Yes' if '7' in N else 'No')

Solution (Python):
n = list(input())

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

Solution (Python):
n = list(input())

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

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

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

Solution (Python):
n=input()
print("No" if n.count("7")==0 else "Yes")

Solution (Python):
N = str(input())

num_set = set([])

for n in N[: : 1]:
    num_set.add(n)


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

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

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

Solution (Python):
n = int(input())
isNana = False

while n > 0:
    if (n - 7) % 10 == 0:
        isNana = True
    n = int((n - (n % 10)) / 10)
    
if isNana:
    print('Yes')
else:
    print('No')

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

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

main()

Solution (Python):
i = input()

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

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

Solution (Python):
n = int(input())
 
yesno = "No"
 
if int(n/100)==7:
  yesno = "Yes"
if n%10==7:
  yesno = "Yes"
n = n%100
if int(n/10)==7:
  yesno = "Yes"
print(yesno)

Solution (Python):
N=input()
for i in range(3):
    if N[i]=='7':
        print('Yes')
        break
    if i==2:
        print('No')

Solution (Python):
s= input()
i=0
res=[]
while i< len(s):
  j=s[i:i+1]
  res.append(j)
  i+=1
print('Yes' if str(7) in res else 'No')

Solution (Python):
n=str(input())

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

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

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

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

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

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

Solution (Python):
n = int(input())
while n != 0:
  n,mod = divmod(n, 10)
  if mod == 7:
    print('Yes')
    exit()
print('No')

Solution (Python):
import sys
readline = sys.stdin.readline


def main():
    n = readline().rstrip()
    print("YNeos"[not(n[0] == "7" or n[1] == "7" or n[2] == "7")::2])


if __name__ == '__main__':
    main()

Solution (Python):
N = int(input())
h = N // 100
t = (N - h * 100) // 10
o = N - h * 100 - t * 10
if h == 7 or t == 7 or o == 7:
    print('Yes')
else:
    print('No')

Solution (Python):
a = [x for x in input()]
for i in range(len(a)):
    if a[i] == '7':
        a[i] = True
    else:
        a[i] = False
if any(a):
    print("Yes")
else:
    print("No")

Solution (Python):
n = input()

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

Solution (Python):

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

Solution (Python):
n = input()
n = list(n)

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

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

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

Solution (Python):
N=input()
aru=0
for s in N:
    if s == "7":
        aru=1
        break
if aru==0:
    print("No")
else:
    print("Yes")

Solution (Python):
N = list(input())

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

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

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

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

Solution (Python):
s=input()

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

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

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

Solution (Python):
import itertools
import math
import fractions
import functools
n = input()
for i in range(len(n)):
    if n[i] == "7":
        print("Yes")
        quit()

print("No")

Solution (Python):
N = input().rstrip()
r = 'Yes' if '7' in N else 'No'
print(r)

Solution (Python):
k = input()
if '7' in k:
    print('Yes')
else:
    print('No')

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

Solution (Python):
N = input()

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

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

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

Solution (Python):
N = set(input())

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

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

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

Solution (Python):
N = input()
flag = "7" in N
if flag==True:
    print("Yes")
else:
    print("No")

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

Solution (Python):
n = input()

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

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

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

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

Solution (Python):
n = int(input())

ans = 0

for i in range(0,3):
    if (n % 10) == 7:
        ans = 1
        break
    else:
        n = int(n/10)

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

Solution (Python):
in_set = set(input())
if '7' in in_set:
    print('Yes')
else:
    print('No')

Solution (Python):
n=input()
result=''
for s in n:
    if s=='7':
        result+='Yes'
        break
    else:
        continue
if result=='Yes':
    print(result)
else:
    print('No')

Solution (Python):
number = input()

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

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

Solution (Python):
from sys import stdin

N = stdin.readline().rstrip()
print('Yes' if '7' in N else 'No')

Solution (Python):
N=int(input())
a=N%10
b=(N%100-a)/10
c=(N%1000-10*b-a)/100
if (a-7)*(b-7)*(c-7)==0:
    print("Yes")
else:
    print("No")

Solution (Python):
a, b, c = input()
if a == "7":
    print('Yes')
elif b == "7":
    print('Yes')
elif c == "7":
    print('Yes')
else:
    print('No')

Solution (Python):
a, b, c = input()
if a == "7":
    print('Yes')
elif b == "7":
    print('Yes')
elif c == "7":
    print('Yes')
else:
    print('No')

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

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

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

Solution (Python):
N = list(map(int,input()))
for i in range(3):
    if(N[i]== 7):
        print('Yes')
        break
    elif(i == 2 ):
        print('No')

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

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

Solution (Python):


from fractions import gcd
from collections import Counter, deque, defaultdict
from heapq import heappush, heappop, heappushpop, heapify, heapreplace, merge
from bisect import bisect_left, bisect_right, bisect, insort_left, insort_right, insort
from itertools import accumulate, product, permutations, combinations, combinations_with_replacement

S = input()

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

Solution (Python):
print('YNeos'[~('7'in input())%2::2])

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

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

Solution (Python):



import sys
sys.setrecursionlimit(10**7)
from pprint import pprint as pp
from pprint import pformat as pf



import math

import bisect


if __name__ == '__main__':
    data = input()
    if '7' in data:
        print("Yes")
    else:
        print("No")

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

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

Solution (Python):
K = input()
if '7' in K:
	print('Yes')
else:
	print('No')

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

Solution (Python):
n = input()

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

Solution (Python):
N=input()

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

Solution (Python):
n = input()

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

Solution (Python):
num = input()
flag = 0
for i in range(len(num)):
    if num[i] == "7":
        flag = 1
if flag == 1:
    print("Yes")
else:
    print("No")

Solution (Python):
n=list(input())
flag=0
for i in n:
    if i=="7":
        flag+=1
if flag>0:
    print("Yes")
else:
    print("No")

Solution (Python):
import sys

n = input()
for i in range(3):
    if(n[i] == "7"):
        print("Yes")
        sys.exit()

print("No")

Solution (Python):

def main():

    N = input()

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


if __name__ == '__main__':
    main()

Solution (Python):
N = input()

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

Solution (Python):
N = str(input())
ans="No"
for i in range(len(N)):
    if N[i]=="7":
        ans="Yes"

print(ans)

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

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

Solution (Python):
l=input()
if "7" in l:
    print("Yes")
else:
    print("No")

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

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

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

Solution (Python):
N = int(input())

s = str(N)

array = list(map(int, s))

for i in range(3):
    if array[i] == 7:
        print('Yes')
        break
    if i == 2:
        print('No')

Solution (Python):
s = input()
flag = 0
for i in range(3):
  if s[i] == "7":
    flag +=1
    print("Yes")
    break
if flag == 0:
  print("No")

Solution (Python):
s = str(input())
if s.find('7') == -1:
    print('No')
else:
    print('Yes')

Solution (Python):
N = input()

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

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

Solution (Python):
import sys
import os
import bisect, collections, copy, itertools, math, string
def I(): return int(input())
def S(): return input()
def LI(): return list(map(int, input().split()))
def LS(): return list(input().split())

def solve():
	N = S()

	flag = False
	for n in N:
		num = int(n)
		if num == 7:
			flag = True

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


if __name__ == '__main__':
	solve()

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

Solution (Python):
n = int(input())

a = int(n / 100)

b = int(n % 100 / 10)
c = int(n % 10)

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

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

Solution (Python):
n= input()

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

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

Solution (Python):
num = input()
if '7' in list(num):
    print('Yes')
else:
    print('No')

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

Solution (Python):
n = list(input())
ans = 'No'
for i in range(len(n)):
  if n[i] == '7':
    ans = 'Yes'
    break
print(ans)

Solution (Python):
S = input()
print("Yes" if(S.count('7') > 0) else "No")

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

Solution (Python):
import sys
sys.setrecursionlimit(10**7)
input = lambda: sys.stdin.readline().strip()

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

main()

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

Solution (Python):
n = input()

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

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

Solution (Python):



def main():
    n = input()

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


if __name__ == '__main__':
    main()

Solution (Python):
s = input()
cek = False
for i in range(len(s)) :
  if s[i]=='7' :
    cek = True
if cek : 
  print("Yes")
else :
  print("No")

Solution (Python):
def main():
    ns = list(map(int, list(input())))
    if 7 in ns:
        print('Yes')
    else:
        print('No')


if __name__ == "__main__":
    main()

Solution (Python):

n = input()
n = list(n)
count = 0

for i in n:
    s = int(i)
    if s == 7:
        count += 1
    else:
        pass

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

Solution (Python):
n = input()

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

Solution (Python):
import math

n=str(input())

if n[-1]=="7":
    print("Yes")
elif n[-2]=="7":
    print("Yes")
elif n[-3]=="7":
    print("Yes")
else:
    print("No")

Solution (Python):
def lucky(N):
  result = "No"
  if N[0:1] == "7" or N[1:2] == "7" or N[2:] == "7":
    result = "Yes"
    
  return result

if __name__ == "__main__":
  N = input()
  print(lucky(N))

Solution (Python):
s = list(input())

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

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

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

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

Solution (Python):

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

Solution (Python):
from sys import stdin


def main():
    n = stdin.readline()[:-1]
    print('Yes') if n.count('7') > 0 else print('No')


if __name__ == "__main__":
    main()

Solution (Python):
n = input()

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

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

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

Solution (Python):
val = input()

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

Solution (Python):
n = str(input())

i = 0
c = 0

while i < 3:
    if n[i] == '7':
        c = 1
        break
    else:
        i += 1

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

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

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

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

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

Solution (Python):
a,b,c=list(input())
if  a=="7":
    print("Yes")
elif b=="7":
    print("Yes")
elif c=="7":
    print("Yes")      
else:
    print("No")

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

Solution (Python):
s = (input())

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

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

Solution (Python):
N = input()

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

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

Solution (Python):
import math
N = list(input())

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

Solution (Python):
N = list(input())
if N[0] == '7':
    print('Yes')
elif N[1] == '7':
    print('Yes')
elif N[2] == '7':
    print('Yes')
else:
    print('No')

Solution (Python):
n = list(input())

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

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

Solution (Python):


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

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

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

Solution (Python):
k = input()

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

Solution (Python):
print('Yes' if list(input()).__contains__('7') else 'No')

Solution (Python):

"""
Created on Wed May  6 01:01:41 2020

@author: shinba
"""
N = input()

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

Solution (Python):

N = input()

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

Solution (Python):
n = input()
nc = n.count('7')
if nc == 0:
	print('No')
else:
	print('Yes')

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

Solution (Python):
n = str(input())

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