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 = input()
ans = 'No'
if n.count('9') > 0:
  ans = 'Yes'
print(ans)

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):
print(["No","Yes"]["9" in input()])

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

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

Solution (Python):
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

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

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

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

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

Solution (Python):
N = input()

nCnt = 0
nCnt += N.count('9')

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

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

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

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

Solution (Python):

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007


def A():
    s = S()
    if "9" in s:
        print("Yes")
    else:
        print("No")
    return


def B():
    return


def C():
    n = II()
    A = {}
    for i in range(n):
        k = II()
        if not k in A:
            A[k] = 1
        else:
            A[k] += 1
    ans = 0
    for item in A.values():
        ans += item % 2
    print(ans)
    return


def D():
    return


def E():
    return


def F():
    return


def G():
    return


def H():
    return


if __name__ == '__main__':
    A()

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

Solution (Python):



N = input()


ans = 'Yes' if N.count('9') >= 1 else 'No'


print(ans)

Solution (Python):
s = input()
for i in range(2):
  if int(s[i]) == 9:
    print("Yes")
    exit()
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=input()

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

Solution (Python):
N = int(input())
ans = 'No'

if(N//10 == 9):
    ans = 'Yes'
if(N%10 == 9):
    ans ='Yes'
print(ans)

Solution (Python):
a = input()
for i in range(len(a)):
    if a[i] == "9":
        print("Yes")
        exit()
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):
N = input()
print("Yes" if N[0] == "9" or N[1] == "9" else "No")

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

Solution (Python):
N = input()

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

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

Solution (Python):
value = int(input())
if value // 10 == 9 or value % 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 '9' in n:
  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):
def print_ans(N):
  """
  Parameters
  --------------
  >>> print_ans("99")
  Yes
  >>> print_ans("19") 
  Yes
  >>> print_ans("17")
  No
  """
  if N[0] == "9" or N[1] == "9":
    print("Yes")
  else:
    print("No")
  

def main():
  N = input()
  print_ans(N)


if __name__ == '__main__':
  main()

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):
N=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 (N[0] == '9') or (N[1] == '9'):
    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 int(N/10)==9:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

N = s()

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

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(N: str):
    if N.__contains__('9'):
        print(YES)
    else:
        print(NO)

    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = str(next(tokens))  
    solve(N)


if __name__ == '__main__':
    main()

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 = input()
if n.find('9') != -1:
    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):
if input().count('9'):
  print('Yes')
else:
  print('No')

Solution (Python):
n=list(input())
if int(n[0])==9 or int(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):
def main():
    print('YNeos'[not input().count('9')::2])


main()

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

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

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

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

Solution (Python):
from collections import defaultdict

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


if __name__ == '__main__':
    main()

Solution (Python):
n = input()

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

Solution (Python):
n=input()
k=n.count("9")
if k==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):
x=int(input())
a=x//10
b=x%10
if a==9 or b==9:
  print("Yes")
else:print("No")

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


abc()

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

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

Solution (Python):
N = str(input())
try:
    N.index("9")
    print("Yes")
except ValueError:
    print("No")

Solution (Python):


s = input()

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

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

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

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  

def solve(N: int):
    if N % 10 == 9 or N // 10 == 9:
        ret = YES
    else:
        ret = NO
    print(ret)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  
    solve(N)

if __name__ == '__main__':
    main()

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

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

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

Solution (Python):











import sys
input=sys.stdin.readline
from math import floor,ceil,sqrt,factorial
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict
inf=float('inf')
mod = 10**9+7
def INT_(n): return int(n)-1
def MI(): return map(int,input().split())
def MF(): return map(float, input().split())
def MI_(): return map(INT_,input().split())
def LI(): return list(MI())
def LI_(): return [int(x) - 1 for x in input().split()]
def LF(): return list(MF())
def LIN(n:int): return [I() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]
def LLIN_(n: int): return [LI_() for _ in range(n)]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def I(): return int(input())
def F(): return float(input())
def ST(): return input().replace('\n', '')
def main():
    N = ST()
    print("YNeos"["9" not in N::2])
    
if __name__ == '__main__':
    main()

Solution (Python):
N = input()

if(N.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):
print(["No", "Yes"]["9" in input()])

Solution (Python):
N=int(input())
if N//10==9 or N%10==9:
    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):
x = input()
if '9' in x:
    print('Yes')
else:
    print('No')

Solution (Python):
a=input()
if a[0]=="9" or a[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())
a = N.count('9')

if a != 0:
    print('Yes')
else:
    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 =list(input())
if "9" in n:
    print("Yes")
else:
    print("No")

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  

def solve(N: int):
    print("YNeos"["9" not in str(N)::2])
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  
    solve(N)

if __name__ == '__main__':
    main()

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

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

Solution (Python):
s = input()
if s[0] == '9' or s[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):

import sys
input = sys.stdin.readline

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

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

Solution (Python):
n=input()

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

else:
    print("No")

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

Solution (Python):
a,b=input()
list=[a,b]
if "9" in list:
  print("Yes")
else:
  print("No")

Solution (Python):
a=input()

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

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

Solution (Python):
n = input()

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

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

Solution (Python):
N = input()
result = 0
for i in N:
    if int(i) == 9:
        result += 1
if result >= 1:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
N=list(str(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 n.find('9') != -1:
    print('Yes')
else:
    print('No')

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

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

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

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

Solution (Python):

N = list(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):
s = raw_input()
if s[0] == "9":
    print "Yes"
elif s[1] == "9":
    print "Yes"
else:
    print "No"

Solution (Python):
S = input()
if S.count('9') >= 1:
  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):
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.__contains__('9'):
    print('Yes')
else:
    print('No')

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

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

Solution (Python):
n=list(str(input()))
print("YNeos"["9" not in n::2])

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

Solution (Python):
import sys


def input():
    return sys.stdin.readline()[:-1]








N = int(input())
if (N//10) % 10 == 9 or (N % 10) % 10 == 9:
    print("Yes")
else:
    print("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()
if '9' in N:
    print('Yes')
else:
    print('No')

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

Solution (Python):
S = list(str(input()))
if S[0] =='9' or S[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","No")[input().count("9") == 0])

Solution (Python):
n=list(input())
print('Yes') if '9' in n 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):
a = input()
if a.count('9') != 0:
    print('Yes')
else:
    print('No')

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

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

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

m=n%10
k=n//10

if m==9 or k==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):
if '9' in str(input()):
	print('Yes')
else:
	print('No')

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

Solution (Python):

def read_input():
    n = int(input())
    return n

def submit():
    n = read_input()

    if n // 10 == 9:
        print('Yes')
        return
    if n % 10 == 9:
        print('Yes')
        return

    print('No')

if __name__ == '__main__':
    submit()

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

Solution (Python):
s = input()

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

Solution (Python):
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

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

solve()

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

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

Solution (Python):
from functools import reduce
import math

def main():
    
    
    
    

    
    
    
    
    
    

    
    

    
    
    
    
    
    
    
    
    
    INF = float("inf")

    
    MOD = 10**9+7
    
    
    
    a = input().rstrip()
    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    if '9' in a:
        print('Yes')
    else:
        print('No')
if __name__ == '__main__':
    main()

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

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

for i in range(2):
    if N % 10 == 9:
        print('Yes')
        quit()
    N //= 10
print('No')

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

Solution (Python):
n = input()
found = 0
for i in n:
        if i == "9":
                print("Yes")
                found = 1
                break

if(not found):
        print("No")

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

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

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

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

for i in range(0,2):
  if n[i] == '9':
    ans += 1
if ans > 0:
  print('Yes')
else:
  print('No')

Solution (Python):
n=int(input())
if n>=90 or n==9 or n==19 or n==29 or n==39 or n==49 or n==59 or n==69 or n==79 or n==89:
    print("Yes")
else:
    print("No")

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

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

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

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

Solution (Python):
a=int(input())
print(["No","Yes"][a%10==9 or a >89])

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

Solution (Python):
s = input()
if "9" in s:
  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" or N[1] == "9":
  print("Yes")
else:
  print("No")

Solution (Python):
N = int(input())
a = int(N/10)
b = N%10



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

Solution (Python):
import functools

import os

INF = float('inf')


def inp():
    return int(input())


def inpf():
    return float(input())


def inps():
    return input()


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


def inlf():
    return list(map(float, input().split()))


def inls():
    return input().split()


def inpm(line):
    return [inp() for _ in range(line)]


def inpfm(line):
    return [inpf() for _ in range(line)]


def inpsm(line):
    return [inps() for _ in range(line)]


def inlm(line):
    return [inl() for _ in range(line)]


def inlfm(line):
    return [inlf() for _ in range(line)]


def inlsm(line):
    return [inls() for _ in range(line)]


def debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper

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

Solution (Python):

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

Solution (Python):
N = input()
flg = 0
for i in N:
    if i == '9':
        flg = 1
print('Yes' if flg == 1 else 'No')

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

Solution (Python):
import sys
N = input()
for x in N:
    if x == '9':
        print('Yes')
        sys.exit()

print('No')

Solution (Python):

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

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

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

Solution (Python):
A = input()
if(A.find("9") != -1):
    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):
a=input()
print("Yes" if a[0]=="9" or a[1]=="9" else "No")

Solution (Python):
N = list(map(int, 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 = 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):
n=int(input())
print("Yes" if n%10==9 or n//10==9 else "No")

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

Solution (Python):

import copy
import numpy as np
import random
import bisect 
import math

N = str(input())

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

else:
    print("No")

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

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

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

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

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

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

Solution (Python):
N = int(input())
if N >=90:
    print("Yes")
elif 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):
s=input()
if s[0]=='9' or s[1]=='9':
  print('Yes')
else:
  print('No')

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

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

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

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):
a, b=map(int,input())
if a==9 or b==9:
  print("Yes")
else:
  print("No")

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

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

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

Solution (Python):
print("Yes" if str(input()).count("9")>0 else "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 = 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()
ans='No'
if '9' in n:
    ans='Yes'
print(ans)

Solution (Python):
n = input()

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

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

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

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

Solution (Python):
n = input()

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

Solution (Python):
import sys

num = int(input())

while num > 0:
    tmp = num % 10
    if tmp == 9:
        print('Yes')
        sys.exit()
    num = num // 10
print('No')

Solution (Python):
import sys

num = int(input())

while num > 0:
    tmp = num % 10
    if tmp == 9:
        print('Yes')
        sys.exit()
    num = num // 10
print('No')

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

Solution (Python):
str = input()

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

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

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

result = False
while a > 1:
     result = result or a%10 == 9
     a = a//10;

if result:
    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 = 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 = int(input())
if n % 10 == 9 or n // 10 == 9:
    print('Yes')
else:
    print('No')

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

Solution (Python):

N = str(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 list(input()) else 'No')

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

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

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

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

Solution (Python):
N = input()

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

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

Solution (Python):


n = int(input())

def digit_list(num):
    num = str(num)
    num = list(num)
    num = list(map(int,num))
    return num

n = digit_list(n)

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

Solution (Python):

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = SR()
    return l
mod = 1000000007


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



"""
n = I()
d = defaultdict(int)
for i in range(n):
    a = I()
    d[a] ^= 1
d = list(d.values())
print(sum(d))
"""

"""
def dfs(n,k,l,a):
    if n == 0:
        a.append(l)
    for i in range(n):
        dfs(n-1,k[:i]+k[i+1:],l+[k[i]],a)
n,m,R = LI()
r = LI()
f = [i for i in range(n)]
for i in range(R):
    r[i] -= 1
v = [[float("inf") for j in range(n)] for i in range(n)]
for i in range(n):
    v[i][i] = 0
for i in range(m):
    a,b,c = LI()
    a -= 1
    b -= 1
    v[a][b] = c
    v[b][a] = c
for k in range(n):
    for i in range(n):
        for j in range(n):
            v[i][j] = min(v[i][j],v[i][k]+v[k][j])
l = []
dfs(R,r,[],l)
ans = float("inf")
for k in l:
    d = 0
    for i in range(R-1):
        d += v[k[i]][k[i+1]]
    ans = min(ans,d)
print(ans)
"""

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

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

Solution (Python):
import sys

def main():
    input = sys.stdin.readline
    N = int(input())
    a = N // 10
    b = N % 10

    if a == 9 or b == 9:
        return 'Yes'
    else:
        return 'No'


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

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

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