ans = [] def reach(x, y, n): if n < 0: return ans ans.append((x, y)) reach(x-2, y-1, n-1) reach(x-2, y+1, n-1) reach(x-1, y-2, n-1) reach(x-1, y+2, n-1) reach(x+1, y-2, n-1) reach(x+1, y+2, n-1) reach(x+2, y-1, n-1) reach(x+2, y+1, n-1) xg, yg = map(int, input().split()) reach(0, 0, 3) if (xg, yg) in ans: print("YES") else: print("NO")