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):
def main():
    N = int(input())
    if N % 10 == 7:
        print('Yes')
        return
    d1 = N // 10
    if d1 % 10 == 7:
        print('Yes')
        return
    d2 = d1 // 10
    if d2 % 10 == 7:
        print('Yes')
        return
    print('No')
    return


if __name__ == "__main__":
    main()

Solution (Python):
N=int(input())
N=str(N)
judge=0
for i in N:
    if(i=="7"):
        judge=1
    else:
        pass
if(judge==1):
    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())

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

if __name__ == '__main__':
    main()

Solution (Python):
N = input()

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

Solution (Python):
a = map(int, input().split())
a = int(list(a)[0])




ans = 'No'
while a > 1:
    
    if a % 10 == 7:
        ans = 'Yes'
        break
    a /= 10
    a = int(a)
print(ans)

Solution (Python):
n=int(input())
flag=0
while n>0:
    if n%10==7:
        flag=1
        break
    n=n//10
if flag==0:
    print("No")
else:
    print("Yes")

Solution (Python):
n = input()
f = 0
for i in range(len(n)):
	if n[i] == "7":
		f = 1
		print("Yes")
		break
if f==0:
	print("No")

Solution (Python):
import sys


n = input()
if n.__contains__('7'):
    print('Yes')
else:
    print('No')

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

Solution (Python):
N = input()


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

Solution (Python):
n = str(input())
a=n[0]
b=n[1]
c=n[2]

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

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

Solution (Python):
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')

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

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

Solution (Python):
N = input()
ok = "No"
for c in N:
    if c == "7":
        ok = "Yes"
print(ok)

Solution (Python):
n = input()

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

Solution (Python):
M=str(input())
Ans=list(M)
count=0
for item in Ans :
    if item=="7" :
        print("Yes")
        break
    else :
        count+=1
if count==3:
     print("No")

Solution (Python):



N = input()


def main():
    if N.count("7"):
        ans = "Yes"
    else:
        ans = "No"
    print(ans)


if __name__ == "__main__":
    main()

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

Solution (Python):


def solve():
    if '7' in input():
        return 'Yes'
    else:
        return 'No'


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

Solution (Python):
N = input()
YN = False
for i in N:
    if int(i) == 7:
        YN = True
if YN:
    print("Yes")
else:
    print("No")

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

Solution (Python):
def main():
    str = input()

    for i in range(len(str)):
        if(7 - int(str[i]))==0:
            print("Yes")
            return 0

    print("No")

main()

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

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

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

Solution (Python):
n = str(input())
l = [n[0], n[1], n[2]]

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

Solution (Python):
n = [int(i) for i in input()]

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

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

Solution (Python):
str=input()

flg=0
for c in str:
    if c == '7':
        flg=1

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

Solution (Python):
N = input()
count=1

for ch in N:
    if ch == '7':
        print('Yes')
        break
    count += 1
    if count ==4:
        print('No')

Solution (Python):
n = input()

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

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

result = ""
while n > 0:
    if n % 10 == 7:
         result = 'Yes'
         break
    else:
        n //= 10
if not result:
    result = 'No'
print(result)

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

Solution (Python):
input_n = input()

flag = True

for char in input_n:
    if char == "7":
        print("Yes")
        flag = False
        break

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

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

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

Solution (Python):
import sys
readline = sys.stdin.buffer.readline
s =readline().rstrip().decode()
if s.find('7') == -1:
  print('No')
else:
  print('Yes')

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

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

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

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

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

Solution (Python):
n = int (input())
p = int(n/100)
l = n%100
k = int(l/10)
h = l%10
if(p == 7 or l == 7 or k==7 or h==7):
    print("Yes")
else:
    print("No")

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

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

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

ans = 0
for i in range(len(n)):
    if n[i] == "7":
        ans = 1
        
if ans == 1:
    print("Yes")
else:
    print("No")

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

main()

Solution (Python):
def solve(n):
    if "7" in list(str(n)):
        return "Yes"
    else:
        return "No"


def main():
    n = int(input())
    res = solve(n)
    print(res)


def test():
    assert solve(117) == "Yes"
    assert solve(123) == "No"
    assert solve(777) == "Yes"


if __name__ == "__main__":
    test()
    main()

Solution (Python):
hoge = input()

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

Solution (Python):
n=input()

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

Solution (Python):


import sys

N = sys.stdin.readline()

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

Solution (Python):
import sys
sys.setrecursionlimit(1 << 25)
read = sys.stdin.readline
ra = range
enu = enumerate


def read_ints():
    return list(map(int, read().split()))


def read_a_int():
    return int(read())


def read_tuple(H):
    '''
    H is number of rows
    '''
    ret = []
    for _ in range(H):
        ret.append(tuple(map(int, read().split())))
    return ret


def read_col(H, n_cols):
    '''
    H is number of rows
    n_cols is number of cols
    A列、B列が与えられるようなとき
    '''
    ret = [[] for _ in range(n_cols)]
    for _ in range(H):
        tmp = list(map(int, read().split()))
        for col in range(n_cols):
            ret[col].append(tmp[col])
    return ret


def read_matrix(H):
    '''
    H is number of rows
    '''
    ret = []
    for _ in range(H):
        ret.append(list(map(int, read().split())))
    return ret
    


def read_map(H):
    '''
    H is number of rows
    文字列で与えられた盤面を読み取る用
    '''
    return [read()[:-1] for _ in range(H)]


def read_map_as_int(H):
    '''
    
    '''
    ret = []
    for _ in range(H):
        ret.append([1 if s == '
        
        
    return ret


MOD = 10**9 + 7
INF = 2**31  

from collections import defaultdict, Counter, deque
from operator import itemgetter
from itertools import product, permutations, combinations
from bisect import bisect_left, bisect_right  
from math import gcd


def lcm(a, b):
    
    g = gcd(a, b)
    return a * b // g


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

Solution (Python):
def main():
    t = input()
    for c in t:
        if c == '7':
            print('Yes')
            exit()
    print('No')

if __name__ == '__main__':
    main()

Solution (Python):
N = int(input())
lA = list(str(N))
flag = 0
for i in range(3):
    if lA[i] == '7':
        flag += 1
if flag != 0:
  print('Yes')
else:
  print('No')

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

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

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

Solution (Python):
n = input()
print('Yes' if any(map(lambda x: x == '7', n)) else "No")

Solution (Python):
n = input()

ans = "No"
if n[0] == "7" or n[1] == "7" or n[2] == "7":
    ans = "Yes"

print(ans)

Solution (Python):
N = input()

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

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

l = [int(x) for x in list(str(a))]
flag = False

for x in l:
	if x == 7:
		flag = True

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

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

Solution (Python):
import sys

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

Solution (Python):
N = input()
hN = str(N)[0:1]
dN = str(N)[1:2]
mN = str(N)[2:3]


bool = 0

if hN == '7':
    bool = bool + 1
elif dN == '7':
    bool = bool + 1
elif mN == '7':
    bool = bool + 1

if bool == 1:
    print('Yes')
elif bool == 0:
    print('No')

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

Solution (Python):
def shred(num, base=10, reverse=True):
    digits = []
    while num != 0:
        digits.append(num % base)
        num /= base
        num = int(num)
    if not reverse:
        digits = [dig for dig in reversed(digits)]
    return digits

if __name__ == '__main__':
    N = int(input())
    if 7 in shred(N):
        print('Yes')
    else:
        print('No')

Solution (Python):



N=input()

ans="No"

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

print(ans)

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

Solution (Python):
k = 0
N = input()
for i in range(3):
    if N[i] == "7":
        k = 1


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

Solution (Python):
n = input()
n = list(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):
def main():
  S = set(input())
  
  if '7' in S:
    print("Yes")
  else:
    print("No") 
  return 0
 
if __name__ == "__main__":
  main()

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

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

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

Solution (Python):
N = input()

flag = "No"

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

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

Solution (Python):
N=input()

flg=0
for i in range(len(N)):
    if N[i]=='7':
        flg+=1

if flg!=0:
    print('Yes')
else:
    print('No')

Solution (Python):
N = int(input())
x = N
flg = False
while x:
    if x % 10 == 7:
        flg = True
        break
    x //= 10
if flg:
  print('Yes')
else:
  print('No')

Solution (Python):
N=str(input())
L=N.count('7')
if L>=1:
    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 = input()
if N[0] == "7" or N[1] == "7" or N[2] == "7":
    print("Yes")
else:
    print("No")

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

Solution (Python):
import sys
N=input()
N=int(N)
a = N / 100
a = int(a)
b = (N - a * 100)/10
b = int(b)
c = (N- a*100 - b*10)
if a==7 or b ==7 or c==7:
    print('Yes')
else:
    print('No')

Solution (Python):

N = str(input())
seven = "7"


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

Solution (Python):
def lucky(n):
    flag = 'No'
    for i in n:
        if i == '7':
            flag = 'Yes'
    print(flag)

n = input()
lucky(n)

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()
a=int(N[0])
b=int(N[1])
c=int(N[2])
if(a==7):
    print('Yes')
else:
    if(b==7):
        print('Yes')
    else:
        if(c==7):
            print('Yes')
        else:
            print('No')

Solution (Python):
raw_input = input().split()
for r in raw_input[0]:
  if '7' == r:
    print('Yes')
    break
else:
  print('No')

Solution (Python):
N=input()
n=[int(c) for c in(N)]
flag=0
for i in (n):
  if i==7:
    flag=1
if flag==1:
  print("Yes")
else:
  print("No")

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

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

c = 1
for i in str(n):
    if i == str(7):
        print('Yes')
        c = 0
        break
    else:
        pass
if c != 0:
    print('No')

Solution (Python):
N = []
N = list(input())
a = 0

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

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

Solution (Python):
import sys

no = int(input())

no_xxo = no % 10
if no_xxo == 7:
    print('Yes')
    sys.exit(0)

no_xox = (no % 100) - no_xxo
if no_xox == 70:
    print('Yes')
    sys.exit(0)

no_oxx = no - no_xox - no_xxo
if no_oxx == 700:
    print('Yes')
    sys.exit(0)

print('No')

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

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

Solution (Python):
N = input()
ml = list(map(int, list(str(N))))
cnt = 0
for i in ml:
    if (i == 7):
        cnt += 1
if (cnt>=1):
    print("Yes")
else:
    print("No")

Solution (Python):


N = int(input())
ans = 'No'

a = N%10
N = N//10

b = N%10
N = N//10

c = N%10
N = N//10

if a==7 or b==7 or c==7:
    ans ='Yes'

print(ans)

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

Solution (Python):
N=int(input())
if (N-7)%10==0:
  Y="Yes"
elif (N-70)%100<10:
  Y="Yes"
elif (N-700)%1000<100:
  Y="Yes"
else:
  Y="No"
print(Y)

Solution (Python):
n = input()

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

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

Solution (Python):
str=input()
a=str.find("7")
if a!=-1:
    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=raw_input()
if "7" in N:
    print "Yes"
else:
    print "No"

Solution (Python):
def shred(num, base=10, reverse=True):
    digits = []
    while num != 0:
        digits.append(num % base)
        num /= base
        num = int(num)
    if not reverse:
        digits = [dig for dig in reversed(digits)]
    return digits

if __name__ == '__main__':
    N = int(input())
    if 7 in shred(N):
        print('Yes')
    else:
        print('No')

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

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

Solution (Python):
def main():
    args = input().rstrip().split(' ')
    N = [val for val in args[0]]
    flag = False
    for val in N:
        if(val == '7'):
            flag = True
            break
    if(flag):
        print('Yes')
    else:
        print('No')
    
if __name__ == "__main__":
    main()

Solution (Python):
S = input()

def main(S):
    for i in range(len(S)):
        if S[i] == '7':
            return 'Yes'

    return  'No'

print(main(S))

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

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

Solution (Python):
n=int(input())
s=str(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):
n = input()

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

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

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

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

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

for i in range(len(N)):
    if(N[i] == '7'):
        ans = 1
        break
    else:
        pass
if(ans == 1):
    print('Yes')
else:
    print('No')

Solution (Python):
n = str(input())
l = len(n)
for i in range(l):
    if n[i] == "7":
        print("Yes")
        break
    if i ==l - 1:
        print("No")

Solution (Python):
A = int(input())
h = A//100
t = (A-h*100)//10
o = (A-h*100-t*10)

if h==7 or t==7 or o==7:
    print("Yes")
else:
    print("No")

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

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

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

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

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

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

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

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

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

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

if 100 <= N and N <=999:
  N11 = str(N)
  N1 = int(N11[0])
  N2 = int(N11[1])
  N3 = int(N11[2])
  if N1 == 7 or N2 == 7 or N3 == 7:
    print('Yes')
  else:
    print('No')

Solution (Python):
N=input()
TF=0
for i in range(3):
    if int(N[i]) == 7:
        TF+=1
        print("Yes")
        break
if TF==0:
    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):
a = list(input())
if "7" in a:
    print("Yes")
else:
    print("No")

Solution (Python):
a = input()

if "7" in a:
    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):
a = input()
if a[0]=='7' or a[1]=='7' or a[2]=='7':
    print("Yes")
else:
    print("No")

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

Solution (Python):
n = input()
count = 0

for i in range(3):
  if n[i] == '7':
    count += 1
    
if count > 0:
  print('Yes')
  
else:
  print('No')

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

Solution (Python):
N = list(input())
flag = 0
for i in N:
	if 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.__contains__('7'):
    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()
counter = 0
for i in n:
  if i == '7':
    counter += 1
if counter != 0:
  print('Yes')
else:
  print('No')

Solution (Python):



import sys
sys.setrecursionlimit(10000000)


dxdy=((1,0),(0,1))

def pin(type=int):
    return map(type,input().rstrip().split())
from math import gcd
def resolve():
    print(["No","Yes"]["7" in input()])
"""         


"""
"""
お前カッコ閉じ,るの忘れてるだろ
"""
import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """117"""
        output = """Yes"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """123"""
        output = """No"""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """777"""
        output = """Yes"""
        self.assertIO(input, output)


if __name__ == "__main__":
    resolve()

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

Solution (Python):
import math
import sys
import collections
N=list(input())
a,b,c=map(int,N)
if a==7 or b==7 or c==7:
    print("Yes")
else:
    print("No")

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

Solution (Python):
S = 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):
N=str(input())
a=list(N)
if '7' in a:
	print('Yes')
else:
	print('No')

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

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

Solution (Python):
n = int(input())
hundred = n // 100
b = n % 100
ten = b // 10
one = b % 10
    
if hundred == 7 or ten == 7 or one == 7:
    print('Yes')
else:
    print('No')

Solution (Python):
n = int(input())
n1 = n//10
n2 = n1//10
if n%10 == 7 or n1%10 == 7 or n2%10 == 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()
flag = 0
for i in range(0,3):
    if N[i] == '7':
        flag = 1
        break
if flag == 1: print('Yes')
else: print('No')

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

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

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

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

n = int(input())
s = False
while n > 0:
  if (n%10 == 7):
    s = True
    break
  else:
    n = n // 10
if s:
  print('Yes')
else:
  print('No')

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

Solution (Python):
n = input()

x = 0
for i in n:
    if i == '7':
        x += 1

if x >= 1:
    print('Yes')
else:   print('No')

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

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

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

else:
    print("No")

Solution (Python):
import sys
n=int(input())
for i in range(3):
  if n%10==7:
    print("Yes")
    sys.exit()
  n=n//10
print("No")

Solution (Python):
n = input()

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

Solution (Python):
import sys

input = sys.stdin.readline

N = input().strip()

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

Solution (Python):
S = input()

ans = 0
for i in range(3):
	if S[i] == "7":
		print("Yes")
		ans = 1
		break

if ans == 0:
	print("No")

Solution (Python):
a=int(input())
b=a%10
c=(a%100 - b)/10
d=a//100
if b==7:
  print('Yes')
elif c==7:
  print('Yes')
elif d==7:
  print('Yes')
else:
  print('No')

Solution (Python):
N = input()

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

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

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

Solution (Python):



s = input()

output = 'No'
for c in s:
    if c == '7':
        output = 'Yes'
        break


print(output)

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

Solution (Python):
N = str(input())
  
li = [N[0],N[1],N[2]]

if "7" in li:
    print("Yes")

else:
    print("No")

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

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

Solution (Python):
N = str(input())
tf = '7' in N
print('Yes' if tf is True else '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):
l = list(input())
for i in range(3):
  if l[i] == "7":
    print("Yes")
    exit()
print("No")

Solution (Python):
a = input()

for i in a:
    if i == "7":
        ans = "Yes"
        break
    else:
        ans = "No"

print(ans)

Solution (Python):
from collections import defaultdict

import sys
sys.setrecursionlimit(10**6)
ii = lambda: int(input())
mis = lambda: map(int,input().split())
lmis = lambda: list(mis())
INF = float('inf')

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



if __name__ == "__main__":
    main()

Solution (Python):
n = input()

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

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

Solution (Python):
import sys
si = sys.stdin.readline
so = sys.stdout.write


def main():
    n = int(si())
    while n > 0:
        temp = n % 10
        if temp == 7:
            print('Yes')
            return
        n //= 10
    print('No')


if __name__ == '__main__':
    main()

Solution (Python):

def main():
    t = input()
    for c in t:
        if c == '7':
            print('Yes')
            exit()
    print('No')

if __name__ == '__main__':
    main()

Solution (Python):
N=int(input())
I= [int(x) for x in list(str(N))]

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

Solution (Python):
N = input()
if int(N) % 10 == 7:
  print("Yes")

elif (int(N) - int(N)%10)%100 == 70:
  print("Yes")

elif int(N) - int(N)%100 == 700:
  print("Yes")

else:
  print("No")

Solution (Python):
n = int(input())
s = list(str(n))

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

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

Solution (Python):
a = list(input())
b = 0
for i in range(3):
    if a[i] == "7":
        b += 1
    else:
        continue
if b>0:
    print("Yes")
else:
    print("No")

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

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

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

Solution (Python):
n = input()

ans = "No"
for c in n:
    if c == "7":
        ans = "Yes"
        break
print(ans)

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

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

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

temp = [i for i in N if i == "7"]
print("Yes") if len(temp) > 0 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 = list(input())



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

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

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

Solution (Python):
n=str(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 str(n)[0] == "7" or str(n)[1] == "7" or str(n)[2] == "7":
    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 = input()
if N[:1]=='7' or N[1:2]=='7' or N[2:]=='7':
	print('Yes')
else:
	print('No')

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

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

Solution (Python):
def main():
  return 'Yes' if '7' in input() else 'No'

print(main())

Solution (Python):
n = input()

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

Solution (Python):
N = input()

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

print(ans)

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

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

Solution (Python):
import sys

N = input()

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