#include #include #include #include #include #include #include #include #include #define MAX_N 100001 #define INF_INT 2147483647 #define INF_LL 9223372036854775807 #define REP(i,n) for(int i=0;i<(int)(n);i++) using namespace std; typedef long long int ll; typedef pair P; bool solve(ll A,ll B){ if(A == 0 && B == 0) return true; else if(A % 2 == 1 && B % 2 == 1) return false; else{ if(A % 2 == 0 && B % 2 == 0){ return solve(A/2,B-1) || solve(A-1,B/2); }else{ if(A % 2 == 1) return solve(A-1,B/2); else return solve(A/2,B-1); } } } int main() { ll A,B; cin >> A >> B; if(solve(A,B)){ cout << "Yes" << endl; }else cout << "No" << endl; return 0; }