#include #define rep(i,n) for(int i=(0);i<(n);i++) using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair pii; template bool chmax(T &a, const T &b) { if (a bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; } set st; int dr[8] = {1, 2, 1, 2, -1, -2, -1, -2}; int dc[8] = {2, 1, -2, -1, 2, 1, -2, -1}; void dfs(int r, int c, int d){ st.insert({r, c}); if(d == 3) return; rep(i, 8){ int nr = r + dr[i]; int nc = c + dc[i]; dfs(nr, nc, d+1); } } int main(){ cin.tie(0); ios::sync_with_stdio(false); dfs(0, 0, 0); int s, t; cin >> s >> t; if(st.count({s, t}) == 1){ cout << "YES" << endl; }else{ cout << "NO" << endl; } }