#include "bits/stdc++.h" using namespace std; bool DP[13][13] = {}; int dx[8] = { -2, -2, -1, -1, 1, 1, 2, 2 }, dy[8] = { -1, 1, -2, 2, -2, 2, -1, 1 }; void DFS(int N, int X, int Y) { DP[X][Y] = true; if (N == 0) return; for (int i = 0; i < 8; i++) { DFS(N - 1, X + dx[i], Y + dy[i]); } } int main() { int X, Y; cin >> X >> Y; if (abs(X) > 6 || abs(Y) > 6) { cout << "NO" << endl; return 0; } X += 6, Y += 6; DFS(3, 6, 6); if (DP[X][Y]) cout << "YES" << endl; else cout << "NO" << endl; }