import Control.Monad
import Data.Maybe
import qualified Data.ByteString.Char8 as BS
import Data.List

readInt = fst . fromJust . BS.readInt
getInt = readInt <$> BS.getLine

main = do
    n <- getInt
    putStrLn $ solve n

solve n | length [() | a <- [1..9], b <- [1..9], a*b == n] == 0 = "No"
        | otherwise = "Yes"