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