#include using namespace std; #define DEBUG(x) cout<<#x<<": "< #define vl vector #define vii vector< vector > #define vll vector< vector > #define vs vector #define pii pair #define pis pair #define psi pair #define pll pair #define fi first #define se second #define rep(i,n) for(int i=0;i<(int)(n);i++) #define rep1(i,n) for(int i=1;i<=(int)(n);i++) #define all(c) c.begin(),c.end() #define in(x, a, b) a <= x && x < b const int inf = 1000000001; const ll INF = 2e18; const ll MOD = 1000000007; //const ll mod = 1000000009; const double pi = 3.14159265358979323846; #define Sp(p) cout< y) { swap(x, y); } bool flag = false; if (x % 2 == 0 && y%2) { flag |= dfs(x / 2, y - 1); } else if(x % 2 && y % 2 == 0) { flag |= dfs(x - 1, y % 2); } else if(x % 2 == 0 && y % 2 == 0) { if (y != 0) { flag |= dfs(x / 2, y - 1); } if (x != 0) { flag |= dfs(x - 1, y / 2); } } return flag; } int main() { ll x, y; cin >> x >> y; if (dfs(x, y)) { cout << "Yes" << endl; } else { cout << "No" << endl; } }