#include using namespace std; #define ll long long #define rep(i,l,r) for(ll i=(l);i<(r);i++) int main(){ cin.tie(0); ios::sync_with_stdio(false); ll a,b,c=0; cin>>a>>b; while(true){ if(!a||!b){ cout<<"Yes"<<"\n"; return 0; } if(!a&1^(b&1)){ cout<<"No"<<"\n"; return 0; } if(a&1){ a--; b>>=1; }else{ b--; a>>=1; } } return 0; }