#include #include using namespace std; long a,b; map,int>M; bool f(long a,long b) { if(a==0||b==0)return 1; else if(a%2) { if(b%2) { return 0; } else { return f(a-1,b/2); } } else if(b%2) { if(a%2) { return 0; } else { return f(a/2,b-1); } } else { return f(a-1,b/2)|f(a/2,b-1); } } main() { cin>>a>>b; cout<<(!f(a,b)?"No":"Yes")<