import sys input = sys.stdin.readline sys.setrecursionlimit(10**6) ############################## X, Y = map(int, input().split()) def dfs(x, y, X, Y, i): if i == 3+1: return False if x == X and y == Y: return True if dfs(x-2, y-1, X, Y, i+1): return True if dfs(x-2, y+1, X, Y, i+1): return True if dfs(x-1, y-2, X, Y, i+1): return True if dfs(x-1, y+2, X, Y, i+1): return True if dfs(x+1, y-2, X, Y, i+1): return True if dfs(x+1, y+2, X, Y, i+1): return True if dfs(x+2, y-1, X, Y, i+1): return True if dfs(x+2, y+1, X, Y, i+1): return True return False print('YES' if dfs(0,0,X,Y,0) else 'NO')