#include using namespace std; int x, y; int dx[8] = {-2, -2, -1, -1, 1, 1, 2, 2}; int dy[8] = {-1, 1, -2, 2, -2, 2, -1, 1}; bool dfs(int a, int b, int cnt){ if(a == x and b == y) return true; if(cnt == 3) return false; for(int i = 0; i < 8; i++){ int nx, ny; nx = dx[i] + a; ny = dy[i] + b; if(dfs(nx, ny, cnt + 1)) return true; } } int main(){ cin.tie(0); ios::sync_with_stdio(false); cin >> x >> y; if(dfs(0, 0, 0)){ cout << "YES" << endl; }else{ cout << "NO" << endl; } return 0; }