#include #include #include #include #include #include #include #include #include #include #include #include #include #define p(s) cout<<(s)<=n;i--) #define CK(n,a,b) ((a)<=(n)&&(n)<(b)) #define F first #define S second typedef long long ll; using namespace std; const int inf = 1e9+7; ll A,B; string ans; int main() { cin>>A>>B; ans="Yes"; while(!(A==0||B==0)){ if(A%2&&B%2){ ans="No"; break; }else if(A%2){ B/=2; A--; }else if(B%2){ A/=2; B--; }else if(A>=B){ A/=2; B--; }else if(B>A){ B/=2; A--; } } p(ans); return 0; }