#include using namespace std; int main(){ int a,b;cin>>a>>b; if(a>b)swap(a,b); bool ok = a==b; while(b%2==0)b/=2; if(a==2 && b==1)ok = true; cout << (ok?"Yes":"No") << endl; }