#include using namespace std; typedef long long ll; bool ok(ll A, ll B){ if(A==0 || B==0){ return true; } if(A%2LL==1LL && B%2LL==1LL){ return false; }else if(A%2==1LL && B%2==0LL){ return ok(A-1LL, B>>1LL); }else if(A%2==0 && B%2==1){ return ok(A>>1LL, B-1LL); }else{ return ok(A-1LL, B>>1LL) || ok(A>>1LL, B-1LL); } } int main(void){ // Your code here! ll A, B; cin >> A >> B; if(ok(A,B)){ cout << "Yes" << endl; }else{ cout << "No" << endl; } }