#include using namespace std; int gx, gy; bool dfs(int x, int y, int depth) { if (depth > 3)return false; if (x == gx && y == gy) return true; return dfs(x - 2, y - 1, depth + 1) || dfs(x - 2, y + 1, depth + 1) || dfs(x - 1, y - 2, depth + 1) || dfs(x - 1, y + 2, depth + 1) || dfs(x + 1, y - 2, depth + 1) || dfs(x + 1, y + 2, depth + 1) || dfs(x + 2, y - 1, depth + 1) || dfs(x + 2, y + 1, depth + 1); } int main() { cin >> gx >> gy; cout << (dfs(0, 0, 0) ? "YES" : "NO") << endl; return 0; }