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