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-----
29

-----Sample Output-----
Yes

The one's digit of 29 is 9.

Difficulty: introductory

Starter code:

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

N = input()

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

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

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

n=int(input())

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

#93
s=list(input())
c=0
for i in range(0,len(s)):
    if s[i]=='9':
        c=c+1
if c==0:
    print('No')
else:
    print('Yes')

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

str_num = str(input())

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


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

N = str(input())

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

n = input('')

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

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

N = input()

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

N = str(input())

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


N = input()

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

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

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

main()


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

a,b=map(int,input())

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

s = input()
ans = "No"
for c in s:
	if c == "9":
		ans = "Yes"
print(ans)

N = str(input())

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


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

N = str(input())

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

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

N = list(input())

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

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

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

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


'''
問題：
    今、日本は 9 月 9 日です。
    二桁の整数 N が与えられるので、十進法で N に 9 が含まれるか答えてください。
'''
'''
制約：
10 ≦ N ≦ 99
'''

# 標準入力から N を取得する
n = int(input())

result = ""
if n % 10 == 9: # 1の位が 9
    result = "Yes"
elif 90 <= n % 100 < 100:   # 10の位が 9
    result = "Yes"
else:
    result = "No"

print(result)


print("YNeos"[input().count("9")<1::2])

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

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

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

N = str(input())

if N[0] == "9" or N[1] == "9":
    result = "Yes"
else:
    result = "No"

print(result)


N=int(input())
if 10<=N and N<=99:
    n=str(N)
    if (int(n[0])==9 or int(n[1])==9) or (int(n[0])==9 and int(n[1])==9):
        print('Yes')
    else:
        print('No')

N = str(input())

def answer(N: str) -> str:
    if '9' in N:
        return 'Yes'
    else:
        return 'No'

print(answer(N))

N = str(input())

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

# 1の位、10の位に9が含まれているかの判定

N = input()

if "9" in N:        # in: 含まれていたらTrue
    print("Yes")
else:
    print("No")


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


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


n = input()
s = n.find('9')

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


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

# A - September 9
# https://atcoder.jp/contests/abc073/tasks/abc073_a

n = input()

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


N = int(input())

# 二桁の整数 N が与えられるので、
# 9 が含まれるとき Yes 、含まれないとき No を出力せよ。

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

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

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


N = int(input())

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


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

# 数値を取得
N = str(input())

# 文字列を検査し結果を出力
if "9" in N:
    print("Yes")
else:
    print("No")

def atc_073a(N: int) -> str:
    try:
        str(N).index("9")
        return "Yes"
    except ValueError:
        return "No"

N = int(input())
print(atc_073a(N))

N = input()

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

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

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


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


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


def iroha():
    num = list((input()))
    for i in num:
        if i == "9":
            print("Yes")
            return
    
    print("No")



def __starting_point():
    iroha()


__starting_point()

N = input()

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


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

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

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

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

N = int(input())
if N >= 90 or (N - 9) % 10 == 0:
  print("Yes")
else:
  print("No")

# 073a

def atc_073a(N: int) -> str:
    try:
        str(N).index("9")
        return "Yes"
    except ValueError:
        return "No"

N = int(input())
print((atc_073a(N)))


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

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

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


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

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

N = input()
print(('Yes' if N.find('9') != -1 else 'No'))


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

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

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

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

N = input()

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


N = input()

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

N = int(input())

number_nine = list(str(N))
if '9' in number_nine:
    print('Yes')
else:
    print('No')

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



N = int(input())

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

else:
    print('No')


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

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

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

n = str(input())

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

a = list(input())
count = 0
for i in range (0, len(a)):
    if a[i] == "9":
        count += 1

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

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


X = str(input())

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


n = input()

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

# A - September 9

N = input()
my_list = []

for i in N:
    my_list.append(i)

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

n = str(input())

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

n = input()

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

N = input()

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

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

N = input()

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

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

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

n = input()

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

#
# abc073 a
#
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 = """29"""
        output = """Yes"""
        self.assertIO(input, output)

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

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


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


def __starting_point():
    # unittest.main()
    resolve()

__starting_point()

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

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

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


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