x, y = map(int, input().split()) def canmove(gx, gy): if gx == 0 and gy == 0: return True frontiers = [(0, 0)] visited = set() for i in range(3): new_frontiers = set() for x, y in frontiers: for dx, dy in [(-2, -1), (-2, 1), (-1, -2), (-1, 2), (1, -2), (1, 2), (2, -1), (2, 1)]: nx, ny = x + dx, y + dy if nx == gx and ny == gy: return True if (nx, ny) in visited: continue visited.add((nx, ny)) new_frontiers.add((nx, ny)) frontiers = new_frontiers return False if canmove(x, y): print('YES') else: print('NO')