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