#include #include #include #include #include #include #include #include #include #include #include #include #include #include #define MOD 1000000007ll #define INF 1000000000ll #define EPS 1e-10 #define REP(i,m) for(long long i=0; i<(ll)m; i++) #define FOR(i,n,m) for(long long i=n; i<(ll)m; i++) #define DUMP(a) for(long long dump=0; dump<(ll)a.size(); dump++) { cout< P; typedef long double ld; int main() { ios::sync_with_stdio(false); cin.tie(0); ll a,b; cin>>a>>b; ll buf=a; ll x=0,y=0; while(buf>0) { if(buf%2) { buf--; y*=2; } else { buf/=2; y++; } } if(y==b) { cout<<"Yes"<0) { if(buf%2) { buf--; x*=2; } else { buf/=2; x++; } } if(x==a) cout<<"Yes"<