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