#include using namespace std; typedef long long ll; int main(){ ll a,b; cin >> a >> b; bool flag = true; while(1){ if(a == 0 || b == 0){ flag = true; break; } if(a % 2 == 0 && b % 2 == 0){ if(a>b){ a /= 2; b--; }else{ a--; b /= 2; } }else if(a % 2 == 0){ a /= 2; b--; }else if(b % 2 == 0){ a--; b /= 2; }else{ flag = false; break; } } if(flag) cout << "Yes" << endl; else cout << "No" << endl; return 0; }