#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; } ll A,B; int main(){ cin>>A>>B; cout<<(Rec(A,B)?"Yes":"No")<