def dfs(x, y, c): if c > 3: return if x == X and y == Y: print("YES") exit() dfs(x - 2, y - 1, c + 1) dfs(x - 2, y + 1, c + 1) dfs(x - 1, y - 2, c + 1) dfs(x - 1, y + 2, c + 1) dfs(x + 1, y - 2, c + 1) dfs(x + 1, y + 2, c + 1) dfs(x + 2, y - 1, c + 1) dfs(x + 2, y + 1, c + 1) X, Y = map(int, input().split()) dfs(0, 0, 0) print("NO")