Problem:
 Score : 100 points    Problem Statement It is September 9 in Japan now.  You are given a two-digit integer N . Answer the question: Is 9 contained in the decimal notation of N ?      Constraints  10≤N≤99         Input Input is given from Standard Input in the following format:  N       Output If 9 is contained in the decimal notation of N , print Yes ; if not, print No .        Sample Input 1 29      Sample Output 1 Yes  The one's digit of 29 is 9 .       Sample Input 2 72      Sample Output 2 No  72 does not contain 9 .       Sample Input 3 91      Sample Output 3 Yes

Solution (Python):
n = int(input())
if n%10 == 9 or n//10 == 9:
  print("Yes")
else:
  print("No")

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

Solution (Python):
print("YNeos"["9" not in input()::2])

Solution (Python):
print('Yes' if any('9' == c for c in input()) else 'No')

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

Solution (Python):
n = input()
a = "No"
for ch in n:
    if ch == "9":
        a = "Yes"

print(a)

Solution (Python):
n = str(input())
if n[0]!='9' and n[1]!='9':
  print('No')
else:
  print('Yes')

Solution (Python):
print('YNeos'[input().find('9')==-1::2])

Solution (Python):
N = input()
flag = 0
 
for i in range(len(N)):
    if N[i] == '9':
        print('Yes')
        flag = 1
        break
if flag == 0:
    print('No')

Solution (Python):
N = input()
flag = False
for i in N:
  if(i=='9'):
    flag = True
if(flag):
  print('Yes')
else:
  print('No')

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

b = [int(x) for x in list(str(n))]

if b[0] == 9 or b[1] == 9:
    print('Yes')
else:
    print('No')

Solution (Python):
def september9(N: int)->bool:
    return N % 10 == 9 or (N//10) % 10 == 9


if __name__ == "__main__":
    N = int(input())
    yes = september9(N)
    print('Yes' if yes else 'No')

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

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

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

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

Solution (Python):
n=int(input())
if n%10==9 or n//10==9:
    print("Yes")
else:
    print("No")

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

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

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

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

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

Solution (Python):



def func(n):
    if '9' in n:
        result = 'Yes'
    else:
        result = 'No'
    return result


N = input()
print(func(N))

Solution (Python):



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


if __name__ == '__main__':
    main()

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

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

Solution (Python):

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

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

Solution (Python):
N = str(input())
if N[0] == "9":
    print("Yes")
elif N[1] == "9":
    print("Yes")
else:
    print("No")

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

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

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

Solution (Python):
N = [i for i in input() if i=="9"]
if len(N)!=0:
    print("Yes")
else:
    print("No")

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

Solution (Python):
a = str(input())
if a.count("9")==1 or a.count("9")==2:
  print("Yes")
else:
  print("No")

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

Solution (Python):
N = input()
for c in N:
  if c=="9":
    print("Yes")
    break
else:
  print("No")

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

Solution (Python):
print("YNeos"["9" not in input()::2])

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

Solution (Python):
def main():
    N = int(input())
    if N % 10 == 9 or N//10 == 9:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

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

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

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

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

Solution (Python):
N=input()
if N.count("9")>=1:
  print("Yes")
else:
  print("No")

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

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

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

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

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

Solution (Python):
N = input()

def isNine( N ):
    for i in N:
        if( i == '9' ):
            print( 'Yes' )
            return
    print( 'No' )
    return

isNine( N )

Solution (Python):
import collections
import itertools
import numpy as np
import sys
def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

N = S()
if "9" in N:
	print("Yes")
else:
	print("No")

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

Solution (Python):
from sys import stdin
l = list(stdin.readline().rstrip())
if '9' in l:
  print('Yes')
else:
  print('No')

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

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

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

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

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

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

Solution (Python):
n = input()

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

Solution (Python):
s=map(int, input())
print('Yes' if any([int(n)==9 for n in s]) else 'No')

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

Solution (Python):
a=input()
print("Yes") if a[0] == "9" or a[1] =="9" else print("No")

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

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

Solution (Python):
import heapq
from collections import deque
from enum import Enum
import sys
import math
from _heapq import heappush, heappop

BIG_NUM = 2000000000
MOD = 1000000007
EPS = 0.000000001


table = input()

FLG = False

for i in range(len(table)):
    if table[i] == '9':
        FLG = True
        break

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

Solution (Python):
if input().find('9')>-1:
  print("Yes")
else:
    print("No")

Solution (Python):
n = input().rstrip()
if "9" in n :
  print("Yes")
else :
  print("No")

Solution (Python):
if input().find('9') > -1:
    print('Yes')
else:
    print('No')

Solution (Python):
N = input()

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

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

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

ans = N // 10 == 9 or N % 10 == 9

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

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

Solution (Python):
s = input()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
N=int(input())
a=N//10
b=N%10
if a==9 or b==9:
    print("Yes")
else:
    print("No")

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

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

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

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

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

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

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

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

if str(int_n).count("9") > 0:
    print("Yes")
else:
    print("No")

Solution (Python):
n = str(input())
if sorted(n)[1]=='9':
    print('Yes')
else:
    print('No')

Solution (Python):
s=input()
for x in s:
  if x == '9':
    print("Yes")
    exit()
print("No")

Solution (Python):
a = input()
b = "No"
for i in a:
    if i == "9":
        b = "Yes"
print(b)

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

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

Solution (Python):
N = int(input())
flg = False
while 0 < N:
    if N % 10 == 9:
        flg = True
    N //= 10
print("Yes" if flg else "No")

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

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

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

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

Solution (Python):
N = list(input())
ans = "No"
for i in N:
  if i == "9":
    ans = "Yes"
print(ans)

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

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

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

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

Solution (Python):
n = list(input())
ans = 0
for s in n:
    if s == '9':
        print('Yes')
        break
else:
    print('No')

Solution (Python):
n = input()

print('Yes' if '9' in n else 'No')

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

Solution (Python):
N = input()

ans = "No"

if N[0] == "9":
    ans = "Yes"
if N[1] == "9":
    ans = "Yes"

print(ans)

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

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

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

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

  if x[0] == '9':
    print('Yes')
    return
  if x[1] == '9':
    print('Yes')
    return
  print('No')
  return

if __name__ == '__main__':
  main()

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

Solution (Python):
print(['No','Yes'][input().count('9')>0])

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

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

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

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

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

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

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

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

Solution (Python):
n=input()

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

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

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

Solution (Python):



def main():
    n = input()

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


if __name__ == '__main__':
    main()

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

if('9' in a):
    print("Yes")
else:
    print("No")

Solution (Python):
print(["Yes","No"][input().count('9')==0])

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

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

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

Solution (Python):
N = input()
if N.find("9")<0:
    print("No")
else:
    print("Yes")

Solution (Python):
x=list(input())
if x.count("9")>=1:
    print("Yes")
else:
    print("No")

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


if __name__ == '__main__':
    main()

Solution (Python):
N=map(str,input().replace(""," ").split())
if "9" in N:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
s=list(input())
print('Yes' if s[0]=='9' or s[1]=='9' else 'No')

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

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

Solution (Python):
n = input().find("9")

if n < 0:
  print("No")
else:
  print("Yes")

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

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

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

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

Solution (Python):

N = str(input())
S = N.count("9")
if S == 0:
  print("No")
else:
  print("Yes")

Solution (Python):



def main():
    """Function."""
    n = str(input())
    if "9" in n:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

Solution (Python):
from statistics import mean, median,variance,stdev
import sys
import math







if '9' in input():
    print("Yes")
else: print("No")

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

Solution (Python):
N = input()

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

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

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

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

Solution (Python):
N = list(input())
if('9' in N):
    print('Yes')

else:
    print('No')

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

for i in range(l):
  if(N[i] == '9'):
    print('Yes')
    exit()
  else:
    continue
    
print('No')

Solution (Python):
n = int(input())
digit_list = []

while n > 0:
    digit_list.append(n%10)
    n //= 10

if 9 in digit_list:
    print('Yes')
else:
    print('No')

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

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

Solution (Python):
N = input()

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

Solution (Python):
n = input()

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

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

Solution (Python):
a=input()

b=list(a)

b=[int(i) for i in b]

if(b[0]==9 or b[1]==9):
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
s = input()

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

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

Solution (Python):
N = input().rstrip()

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

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

f = True

for n in N:
    if n == '9':
        print('Yes')
        f = False
        break

if f == True:
    print('No')

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

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

Solution (Python):
a = list(input())
if a[0] == "9" or a[1] == "9":
  print("Yes")
else:
  print("No")

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

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

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

Solution (Python):
N = raw_input()
print "Yes" if int(N[0]) == 9 or int(N[1]) == 9 else "No"

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

Solution (Python):
ans='No'
for x in input():
    if x =='9':
        ans='Yes'
print(ans)

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

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

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

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

Solution (Python):
n=int(input())
if (n%10!=9)&(n//10!=9):
  print('No')
else:
  print('Yes')

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

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

Solution (Python):
N = input()

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

Solution (Python):
n=str(input())
print(('No','Yes') [n[1]=='9' or n[0]=='9'])

Solution (Python):
s = input()
f = False
for i in s:
  if i == '9':
    f = True
if f:
  print('Yes')
else:
  print('No')

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

Solution (Python):
N = input()

if N.count("9") >= 1:
    print("Yes")
else:
    print("No")

Solution (Python):
n = input()

print("Yes" if "9" in str(n) else "No")

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

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

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

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

Solution (Python):
listN = list(str(input()))
if "9" in listN:
    print("Yes")
else:
    print("No")

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

Solution (Python):

print(["No", "Yes"]["9" in input()])

Solution (Python):
listN = list(str(input()))
if "9" in listN:
    print("Yes")
else:
    print("No")

Solution (Python):


INF = float('inf')


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


N = int(input())


if N // 10 == 9 or N % 10 == 9:
    print('Yes')
else:
    print('No')

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

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

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

Solution (Python):
a = list(input())
if a[0] == "9" or a[1] == "9":
  print("Yes")
else:
  print("No")

Solution (Python):


n  = input()

if n.count('9')!=0:
  print('Yes')
else:
  print('No')

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

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

if n // 10 == 9 or n % 10 == 9:
    print("Yes")

else:
    print("No")

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

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

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

Solution (Python):
import sys

N = input()

for i in N:
    if i == "9":
        print("Yes")
        sys.exit()

print("No")

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

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

Solution (Python):
a = int(input())
if a//10 == 9:
  print("Yes")
elif a % 10 == 9:
  print("Yes")
else:
  print("No")

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

Solution (Python):
flag = False
for i in input():
   if i == '9':
       flag = True

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

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

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

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

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

Solution (Python):
N = input()
print("Yes" if N.count("9")>=1 else "No")

Solution (Python):
a=int(input())
if a%10==9 or a//10==9:print("Yes")
else:print("No")

Solution (Python):
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]

def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


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


if __name__ == '__main__':
    main()

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

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

Solution (Python):
n = input()

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

Solution (Python):
N = input()

for i in N:
    if i == '9':
        print('Yes')
        exit()
print('No')

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

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

Solution (Python):
N = input()

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

Solution (Python):
x,y=map(int,input())
if x==9 or y==9:
	print("Yes")
else:
	print("No")

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

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

Solution (Python):
N=int(input())
if (90<=N<=99):
  print("Yes")
else:
  if(N%10==9):
    print("Yes")
  else:
    print("No")

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

Solution (Python):

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

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

Solution (Python):
N = input()
judge = N.find("9")
if  judge != -1:
  print("Yes")
else:
  print("No")

Solution (Python):

n = str(raw_input())

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

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

Solution (Python):
n = input()

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

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

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

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

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

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

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

Solution (Python):


def main():
    n = input()
    for i in n:
        if i == '9':
            print('Yes')
            exit()
    print('No')


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

Solution (Python):
n = input()

print("Yes" if "9" in str(n) else "No")

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

if a[0]=='9' or a[1]=='9':
    print('Yes')
else:
    print('No')

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

Solution (Python):
num = input()
print("Yes" if num[0] == "9" or num[1] == "9" else "No")

Solution (Python):

n=int(input())
if(n%10==9):
  print("Yes")
elif(int(n/10)==9):
  print("Yes")
else:
  print("No")

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

Solution (Python):
print "Yes" if '9' in raw_input() else "No"

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

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

Solution (Python):
N = list(input())
if N.count("9") >= 1:
	print("Yes")
else:
	print("No")

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

Solution (Python):
a=int(input())
x=int(a%10)
y=int(a//10)

if x==9:
  print("Yes")
elif y==9:
  print("Yes")
else:
  print("No")

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

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

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

a=N%10
b=N//10

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

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

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

Solution (Python):
N=input()
ans=False
for i in range(len(N)):
  if N[i]=='9':
    ans=True
    break
if ans:
  print("Yes")
else:
  print("No")

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

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

Solution (Python):
num = input()
print( "Yes" if( num[0] == '9' or num[1] == '9') else "No" );

Solution (Python):


N = input()

if N.find("9") != -1:
    print("Yes")
else:
    print("No")

Solution (Python):
a=list(input())
if a.count("9")!=0:
    print("Yes")
else:
    print("No")

Solution (Python):
N = input()

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

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

if n%10==9 or n//10==9:
    print("Yes")
else:
    print("No")

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

if N % 10 == 9 or (N // 10) % 10 == 9:
  print('Yes')
else:
  print('No')

Solution (Python):
N = input()

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

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

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

Solution (Python):
a=int(input())
if a//10==9 or a%10==9:
    print("Yes")
else:
    print("No")

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

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

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

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

Solution (Python):


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

Solution (Python):

N_lst = [int(x) for x in list(input())]

if N_lst[0] == 9 or N_lst[1] == 9:
    print('Yes')
else:
    print('No')

Solution (Python):
n=int(input())
print("Yes" if (n%10==9 or n//10==9) else "No")

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

Solution (Python):
N = input()

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

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

Solution (Python):
q = int(input())
if(q//10 is 9 or q%10 is 9):print("Yes")
else:print("No")

Solution (Python):
N = input()

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

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

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

Solution (Python):
N=input()

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

Solution (Python):
a=int(input());print("Yes" if a//10==9 or a%10==9 else "No")

Solution (Python):
a = input()    
if a[0] == '9':
    print('Yes')
elif a[1] == '9':
    print('Yes')
else :
    print('No')

Solution (Python):
ina = input()
if ina[0] == "9" or ina[1] == "9":
  print("Yes")
else:
  print("No")

Solution (Python):
N = input()

isnine = False

for i in range(len(N)):
    if N[i]=="9":
        isnine = True

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

Solution (Python):
numlist = list(map(int, str(input())))
if numlist.count(9) > 0:
  print("Yes")
else:
  print("No")

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

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

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

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

Solution (Python):


n = input()

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

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().strip()

n = ns()
flag = 0
for i in n:
    if i == "9":
        flag = 1
if flag == 1:
    print("Yes")
else:
    print("No")

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

Solution (Python):
def judge(s):
	if s[0] == '9' or s[1] == '9': return 'Yes'
	else: return 'No'

print judge(raw_input())

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

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

for i in range(len(n)):
    if n[i] == "9":
        print("Yes")
        break
    else:
        continue
else:
    print("No")

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

Solution (Python):
a=input()
if a/10==9 or a%10==9:
    print "Yes"
else:
    print "No"

Solution (Python):
n = int(input())
if n % 10 == 9 or n // 10 == 9:
  print('Yes')
else:
  print('No')

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

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