import Control.Applicative ((<$>)) import Data.List (nub) main :: IO () main = solve <$> map read <$> words <$> getLine >>= putStrLn solve :: [Int] -> String solve [x, y] | (x, y) `elem` db = "YES" | otherwise = "NO" where f (x, y) = [(x-2,y-1),(x-2,y+1),(x-1,y-2),(x-1,y+2),(x+1,y-2),(x+1,y+2),(x+2,y-1),(x+2,y+1)] db0 = [(0,0)] db1 = db0 >>= f db2 = db1 >>= f db3 = db2 >>= f db = nub $ db0 ++ db1 ++ db2 ++ db3