module Main (main) where

import qualified Data.ByteString.Char8     as C8
import           Data.Maybe

main :: IO ()
main = do
  [n] <- readInts
  putStrLn $ pretty $ solve n

type Input  = (Int)
type Output = Bool

solve :: Input -> Output
solve = any (=='9') . show

pretty :: Bool -> String
pretty = toYesNo

-- utils
readInts :: IO [Int]
readInts = map (fst . fromJust . C8.readInt) . C8.words <$> C8.getLine

toYesNo :: Bool -> String
toYesNo b = if b then "Yes" else "No"