x, y = map(int,input().split()) l = [[x, y]] z = [[-2, -1], [-2, 1], [-1, -2], [-1, 2], [1, -2], [1, 2], [2, -1], [2, 1]] for _ in range(3): ll = [[x, y]] for i, j in l: for m, n in z: i += m j += n ll.append([i, j]) i -= m j -= n l = ll print('YES' if [0, 0] in l else 'NO')