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 (90 <= n <= 99) or ((n+1) % 10 == 0):
    print("Yes")
else:
    print("No")

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

Solution (Python):
def examA():
    N = I()
    if N%10==9:
        ans = "Yes"
    elif N//10==9:
        ans = "Yes"
    else:
        ans = "No"
    print(ans)


import sys
import copy
import bisect
import heapq
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

Solution (Python):
n = input()

for i in n:
       if i == '9':
              print('Yes')
              exit(0)

print('No')

Solution (Python):
n = input()

a = 0
for i in n:
       if i == '9':
              a += 1

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

Solution (Python):
a = input()

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

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

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

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

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

k = str(n)




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

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

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

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

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

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

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

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

Solution (Python):
N = str(input())
print('YNeos'[N.count('9')==0::2])

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

Solution (Python):
n=input()
n_list=[]
count=0
for letter in n:
    if letter=='9':
        print("Yes")
        break
    else:
        count+=1
if count==len(n):
    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):
for c in input():
  if c == '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=list(input())
f='No'
for a in N:
    if a=='9':
        f='Yes'
print(f)

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):
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 = str(input())
ans = 0
for i in range(2):
    if n[i]=="9":
        ans +=1
if ans>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):
N =list(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=str(input())
print('Yes' if "9" in n else "No")

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

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

Solution (Python):


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




if __name__ == "__main__":
    main()

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

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

Solution (Python):
N = input()

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

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

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

Solution (Python):

S = str(input())

is_nine = False

for s in S:
    if s == '9':
        is_nine = True

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

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

Solution (Python):

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


if __name__ == "__main__":
    main()

Solution (Python):
n = raw_input()

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

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

Solution (Python):
n = input()

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

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

Solution (Python):
N = input()
for c in N:
    if c == "9":
        print("Yes")
        exit()
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 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):
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):
s = input()
a = [int(c) for c in s]
if a.count(9) == 0:
    print('No')
else :
    print('Yes')

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

Solution (Python):
x = input();print("YNeos"[x[0] != '9' and x[1] != '9'::2])

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 '9' in n else "No")

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

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):
def slove():
    import sys
    input = sys.stdin.readline
    n = str(input().rstrip('\n'))
    print("Yes" if n.count("9") != 0 else "No")


if __name__ == '__main__':
    slove()

Solution (Python):
import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

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

Solution (Python):
s = input()
a = [int(c) for c in s]
if 9 in a:
    print('Yes')
else:
    print('No')

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

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

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

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

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

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

a = n//10
b = n%10

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

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

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

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

Solution (Python):


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

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    n=STR()
    if n[0]=='9' or n[1] == '9':
        print('Yes')
    else:
        print('No')
if __name__ == '__main__':
    do()

Solution (Python):
n=input()
ck=0
for _ in range(len(n)):
  if n[_]=='9':
    ck+=1
if not ck==0:
  print('Yes')
else:
  print('No')

Solution (Python):
x = input()

if "9" in x:
    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())
if n%10==9 or 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):
n = input()
for i in n:
    if i == '9':
        print('Yes')
        exit()
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):
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):
if "9" in set(list(input())):
    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())
sN = str(N)

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

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

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

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

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

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

Solution (Python):
import sys
import math
from fractions import gcd





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

def combination_count(n, r):
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))

def permutations_count(n, r):
    return math.factorial(n) // math.factorial(n - r)

big_prime = 1000000007

"""


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


 = int(sys.stdin.readline())
 = map(int, sys.stdin.readline().split())
 = list(map(int, sys.stdin.readline().split()))
 = [list(map(int,list(sys.stdin.readline().split()))) for i in range(N)]
"""
N = int(sys.stdin.readline())

for s in str(N):
    if s == "9":
        print("Yes")
        exit()

print("No")

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

count = 1
for n in str(N):
    if n == '9':
        print('Yes')
        break
    else:
        if count == len(str(N)):
            print('No')
        else:
            count += 1

Solution (Python):
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    

S=input()

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

Solution (Python):
n=input()
a=0
for i in range(len(n)):
    if n[i]=="9":
        a+=1
if a!=0:
    print("Yes")
else:
    print("No")

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

Solution (Python):

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

Solution (Python):
print("Yes" if input().count("9") else "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):
N = input()
flag = 0
for i in N:
    if i == "9":
        flag = 1
        
if flag == 1:
    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()
print("Yes" if "9" in s else "No")

Solution (Python):
N = str(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(("No","Yes")["9" in input()])

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

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

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

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

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


if __name__ == "__main__":
    resolve()

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

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

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

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

n = list(N)

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

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

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

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

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

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

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

def main():
    N = input().strip()

    ok = False
    for c in N:
        if c == "9":
            ok = True
            break
    
    if ok:
        print("Yes")
    else:
        print("No")



if __name__ == "__main__":
    main()

Solution (Python):

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

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

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

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

Solution (Python):
n = input()

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

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

Solution (Python):
import sys
import copy
import  math
import bisect
from collections import *
from operator import itemgetter
"""
from fractions import gcd
def lcm(x, y):
    return (x * y) // gcd(x, y)
"""
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

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

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

Solution (Python):
n = input()

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

Solution (Python):
n = int(input())
print('Yes' if 89 <= n <= 99 or 9 == n % 10 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):
A = input()
if A[0] == '9' or A[1] == '9':
    print('Yes')
else:
    print('No')

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

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

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

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

Solution (Python):
def nine(N):
    for n in N:
        if n is "9":
            return "Yes"
    return "No"
print(nine(input()))

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

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

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

Solution (Python):
def main():
    N = input()
    if "9" in N:
        return "Yes"
    return "No"



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

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

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

Solution (Python):
N = int(input())
l = [19, 29, 39, 49, 59, 69, 79, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99]
bl = False
for i in l:
    if N == i:
        bl = True
        break
if bl:
    print('Yes')
else:
    print('No')

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


def main():

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

if __name__== "__main__":
    main()

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

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

Solution (Python):
print("Yes" if "9" in {i for i in input()} else "No")

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

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

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

for i in s:
  if int(i)==9:
    print('Yes')
    exit()
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()
if s.count("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):
a = input()
if "9" in a:
  print("Yes")
else:
  print("No")

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

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

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

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

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

for i in range(0,2):
    if int(N[i])==9:
        flag+=1
    
if flag==0:
    print('No')
else :
    print('Yes')

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

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

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

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


if __name__ == "__main__":
    test()

Solution (Python):
n = input()

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

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

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

A = N // 10
B = N % 10

if A==9 or B==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):
print("Yes" if "9" in list(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):
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()

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

Solution (Python):
n = input()

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):

if __name__ == '__main__':

  N = set(list(input()))

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

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

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

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

Solution (Python):


N = list(input())

if N.count("9") >= 1:
    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 = 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):
num = input()
print('Yes') if '9' in num else print('No')

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

Solution (Python):
s = list(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):

import sys
INF = float("inf")


def yes():
    print("Yes")  


def no():
    print("No")  


def solve(N: int):
    if "9" in str(N):
        yes()
    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):
N=str(input())
l=[x for x in N]
if "9" in l:
    print("Yes")
else:
    print("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):
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):

import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import math






def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    N = input()
    
    if N[0] == "9":
        print("Yes")
        sys.exit()
    if N[1] == "9":
        print("Yes")
        sys.exit()
    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):
a=int(input())
b=a//10
c=a-b*10
if c==9 or b==9:
    print("Yes")
else:
    print("No")

Solution (Python):
N = 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):
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):
s = input().rstrip()
if any(('9' == i for i in s)):
  print('Yes')
else:
  print('No')

Solution (Python):





string = input()

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

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

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

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

flag = 0
for x in N:
    if x == "9":
        flag = 1
        break
if flag == 0:
    print("No")
else:
    print("Yes")

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

Solution (Python):
n = int(input())
if (n >= 90) | (n%10 == 9) : print('Yes')
else : print('No')