f m
    | m < 10 = "Yes"
    | m `mod` 2 == 0, m < 20 = "Yes"
    | m `mod` 3 == 0, m < 30 = "Yes"
    | m `mod` 4 == 0, m < 40 = "Yes"
    | m `mod` 5 == 0, m < 50 = "Yes"
    | m `mod` 6 == 0, m < 60 = "Yes"
    | m `mod` 7 == 0, m < 70 = "Yes"
    | m `mod` 8 == 0, m < 80 = "Yes"
    | m `mod` 9 == 0, m < 90 = "Yes"
    | otherwise = "No"
        
main = do
    m <- read <$> getLine :: IO Int
    putStrLn $ f m