from itertools import product X, Y = map(int, input().split()) steps = [(-2, -1), (-2, 1), (-1, -2), (-1, 2),(2, -1), (2, 1), (1, -2), (1, 2)] # 3歩 x, y = 0, 0 memo0 = [(0, 0)] memo1 = [] for x, y in memo0: for ii, jj in steps: x1, y1 = x + ii, y + jj memo1.append((x1, y1)) memo2 = [] for x, y in memo1: for ii, jj in steps: x1, y1 = x + ii, y + jj memo2.append((x1, y1)) memo3 = [] for x, y in memo2: for ii, jj in steps: x1, y1 = x + ii, y + jj memo3.append((x1, y1)) memo_all = memo0 + memo1 + memo2 + memo3 if (X, Y) in memo_all: print('YES') else: print('NO')