#include #include #include #include #include #include using namespace std; typedef pair PII; const int dx[8] = {1, 2, -1, -2, 1, 2, -1, -2}; const int dy[8] = {2, 1, 2, 1, -2, -1, -2, -1}; int x, y; bool move(PII pos, int n_move) { if (n_move > 3) { return false; } if (x == pos.first && y == pos.second) { return true; } for (int i = 0; i < 8; i++) { bool ret = move(make_pair(pos.first + dx[i], pos.second + dy[i]), n_move + 1); if (ret) { return true; } } return false; } int main() { cin >> x >> y; bool ret = move(make_pair(0, 0), 0); cout << (ret ? "YES" : "NO") << endl; }