#include #include using namespace std; typedef long long ll; bool Rec(ll i,ll j){ if(!i||!j) return 1; bool B=0; if(i%2==0) B|=Rec(i/2,j-1); if(j%2==0) B|=Rec(i-1,j/2); return B; } const ll M=1000000000000000000; ll A,B; int main(){ cin>>A>>B; assert(0<=A&&A<=M&&0<=B&&B<=M); cout<<(Rec(A,B)?"Yes":"No")<