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

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

N1=N//10
N0=N%10

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

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

Solution (Python):
if '9' in input():
  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=input()
result='No'
for i in n:
    if i=='9':
        result='Yes'
print(result)

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

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

Solution (Python):
import sys

def IS(): return sys.stdin.readline().rstrip()
def II(): return int(IS())
def MII(): return list(map(int, IS().split()))
def MIIZ(): return list(map(lambda x: x-1, MII()))

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

if __name__ == '__main__':
    main()

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

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

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

m = n%10
l = n // 10

if m==9 or l==9:
    print("Yes")
else:
    print("No")

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

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

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

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):
s = input()
if s.count("9") > 0:
  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):

import sys

YES = "Yes"  
NO = "No"  


def solve(N: int):
    print(YES if str(N).count('9') > 0 else NO)
    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):


import sys






























def main():
    mod = 1000000007                
    inf = float('inf')              
    
    sys.setrecursionlimit(10**6)    
    def input(): return sys.stdin.readline().rstrip()
    def ii():    return int(input())
    def mi():    return map(int, input().split())
    def mi_0():  return map(lambda x: int(x)-1, input().split())
    def lmi():   return list(map(int, input().split()))
    def lmi_0(): return list(map(lambda x: int(x)-1, input().split()))
    def li():    return list(input())
    
    
    s = input()
    print('Yes') if '9' in s else print('No')


if __name__ == "__main__":
    main()

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

Solution (Python):
def check():
    N = input()
    if '9' in N:
        return 'Yes'
    return 'No'
print(check())

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

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

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

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

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

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

n = list(readline().decode().rstrip())
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()
print("Yes" if "9" in N else "No")

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

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

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

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

for i in N:
    if i == '9':
        print('Yes')
        exit(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):
n = input()

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

Solution (Python):
N = int(input())
if (N // 10) == 9 or (N - 10*(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()
l = 0
for i in range(len(n)):
  if n[i] == '9':
    l += 1
if l > 0:
  print('Yes')
else:
  print('No')

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 7)
f_inf = float('inf')
mod = 10 ** 9 + 7


def resolve():
    n = input()

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


if __name__ == '__main__':
    resolve()

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

Solution (Python):

"""
Created on Thu May 14 11:36:43 2020

@author: shinba
"""

n = input()

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

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

Solution (Python):

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

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

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

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

Solution (Python):
import sys
import math
import bisect

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

Solution (Python):
N = input()
ARU = False
for i in range(len(N)):
    if N[i] == "9":
        ARU= True
if ARU:
    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()
if '9' in n:
    print('Yes')
else:
    print('No')

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

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


if __name__ == "__main__":
    main()

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

Solution (Python):
import sys

input = sys.stdin.readline


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

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

    print(ans)


if __name__ == "__main__":
    main()

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):
def ABC_73_A():
    N = input()
    
    if N.count('9')>0:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':

    ABC_73_A()

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

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

Solution (Python):

import sys
import math
from bisect import bisect_left, bisect_right, insort_left, insort_right
from collections import defaultdict, deque, Counter
from copy import deepcopy
from fractions import gcd
from functools import lru_cache, reduce
from heapq import heappop, heappush
from itertools import accumulate, groupby, product, permutations, combinations, combinations_with_replacement
from math import ceil, floor, factorial, log, sqrt, sin, cos
from operator import itemgetter
from string import ascii_lowercase, ascii_uppercase, digits
sys.setrecursionlimit(10**7)
rs = lambda: sys.stdin.readline().rstrip()
ri = lambda: int(rs())
rf = lambda: float(rs())
rs_ = lambda: [_ for _ in rs().split()]
ri_ = lambda: [int(_) for _ in rs().split()]
rf_ = lambda: [float(_) for _ in rs().split()]
INF = float('inf')
MOD = 10 ** 9 + 7
PI = math.pi

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

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

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

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

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

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

if __name__ == '__main__':
    main()

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

Solution (Python):
n=input()

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

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

Solution (Python):
N = input()

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

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

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

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

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

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

Solution (Python):
n = input()
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):
def resolve():
	n = input()
	if '9' in n:
		print('Yes')
	else:
		print('No')
resolve()

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

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

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
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()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7
import numpy as np

N = INT()
print("Yes" if N%10 == 9 or N//10 == 9 else "No")

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

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

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

l = len(s)

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

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

ans = 'No'

for a in N:
    if a == '9':
        ans = 'Yes'
        break
    else:
        ans = 'No'

print(ans)

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

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

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

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

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

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

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

Solution (Python):
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from collections import Counter, deque
from collections import defaultdict
from itertools import combinations, permutations, accumulate, groupby, product
from bisect import bisect_left,bisect_right
from heapq import heapify, heappop, heappush
from math import floor, ceil
from operator import itemgetter
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def LI2(): return [int(input()) for i in range(n)]
def MXI(): return [[LI()]for i in range(n)]
inf = 10**17
mod = 10**9 + 7

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

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

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

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

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

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

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

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

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

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

Solution (Python):
n=input()
if n.count('9')>0:
  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 = 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):
s=str(input())

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

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

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

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

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

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

Solution (Python):
N = int(input())
if N % 10 == 9 or N / 9 ==10 or N // 10 == 9:
    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):

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


if '__main__' == __name__:
    resolve()

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

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):
import collections
import sys
import numpy as np
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
MOD = 10**9+7
import itertools
import math
import functools

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

Solution (Python):
n = input()
if n[0] == '9':
    print('Yes')
elif 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 = input()
for i in n:
  if i is '9':
    print('Yes')
    exit()
print('No')

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

print("Yes" if str(n).count("9") >= 1 else "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-a*10

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

else:
  print("No")

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

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

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

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

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

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

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

Solution (Python):
n=input()
n=int(n)
og=n
flag=0
while(n>0):
    d=n%10
    n=n//10
    if(d==9):
        flag=flag+1
        
if(flag>0):
    print("Yes")
else:
    print("No")

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

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

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

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

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

Solution (Python):
N = list(map(int, input()))
cnt = 0
for i in N:
  if i==9:
    cnt += 1
if cnt==0:
  print('No')
else:
  print('Yes')

Solution (Python):
N = input()

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

Solution (Python):
icase=0    
if icase==0:
    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):
N = input()
if "9" in N:
  print("Yes")
else:
  print("No")

Solution (Python):
s = str(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):
def main():
    N = input()

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

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

url = "https://atcoder.jp//contests/abc073/tasks/abc073_a"

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


if __name__ == '__main__':
    main()

Solution (Python):
a = 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):
print('Yes' if '9' in input() 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):
n = list(input())
if n.count('9') != 0:
     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):
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):
def func(l):
    for i in l:
        if i == "9":
            return 1
    return 0

l=list(input())
print("Yes" if func(l)==1 else "No")

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

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

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

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

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

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

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

Solution (Python):
N = input()
ans = "No"
for char in N:
    if char == "9":
        ans = "Yes"
        break

print(ans)

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

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

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

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

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

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

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

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

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

if n == 19 or n == 29 or n == 39 or n == 49 or n == 59 or n == 69 or n == 79 or n == 89 or n == 91 or n == 92 or n == 93 or n == 94 or n == 95 or n == 96 or n == 97 or n == 98 or n == 99 :
  print("Yes")
else:
  print("No")

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

if(N % 10==9):
    print("Yes")
elif(N//10==9):
    print("Yes")
else:
    print("No")

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

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

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

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

if ans:
  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':
    print('Yes')
    exit()
if n[1]=='9':
    print('Yes')
    exit()
else:
    print('No')

Solution (Python):
import itertools
def main():
  n = input()
  print("Yes" if n.count('9') else "No")
if __name__ == '__main__':
  main()

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 = 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):
import sys

n = sys.stdin.readline().rstrip()

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

if __name__ ==  '__main__':
    main()

Solution (Python):

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

Solution (Python):
N = input()

if N.find('9') >=0:
    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):
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

if __name__ == '__main__':
    a = input()

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

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

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

Solution (Python):
print('YNeos'[input().count('9')<1::2])

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

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

Solution (Python):
import math


c=input()

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

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

Solution (Python):
import sys
import os

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

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



if __name__ == '__main__':
    main()

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