#include using namespace std; #define REP(i,a,n) for(int i=(a); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define FOR(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it) #define ALLOF(c) (c).begin(), (c).end() typedef long long ll; typedef unsigned long long ull; bool check(ll A, ll B){ if(A == 0 && B == 0) return true; if(A < 0 || B < 0) return false; if(A > B){ if(A%2==0 && B>0){ if(check(A/2,B-1)) return true; } if(B%2==0 && A>0){ if(check(A-1,B/2)) return true; } }else{ if(B%2==0 && A>0){ if(check(A-1,B/2)) return true; } if(A%2==0 && B>0){ if(check(A/2,B-1)) return true; } } return false; } int main(){ ll A, B; cin >> A >> B; if(check(A,B)) cout << "Yes" << endl; else cout << "No" << endl; return 0; }