import Data.Bool

main = getLine >>= putStrLn . bool "NO" "YES" . knight . map read . words

knight [x,y] = elem (x,y) ((0,0):(move (0,0) >>= move >>= move))
 where move (x,y) = [(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)]