main=do
  [x, y] <- map read.words <$> getLine
  putStrLn $ if sol x y then "Yes" else "No"

sol x y
  | x == 0 && y == 0 = True
  | x <= 0 = False
  | y <= 0 = False
  | otherwise = (sol (x-1) (y-2)) || (sol (x-1) (y-4))