program ABC_073_A_September9
   implicit none
   character(2) N
   read(*, *) N
   if(N(1:1) == '9') then
	   write(*, *) 'Yes'
   else if(N(2:2) == '9') then
	   write(*, *) 'Yes'	   
   else 
       write(*, *) 'No'
   end if
end program ABC_073_A_September9