#include using namespace std; typedef long long ll; bool dfs(ll a,ll b){ if(a==0 && b==0) return true; if(a%2==0 && b>0 && dfs(a/2,b-1)) return true; if(a>0 && b%2==0 && dfs(a-1,b/2)) return true; if(a%2 && b%2) return false; return false; } signed main(){ cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20); ll a,b; cin>>a>>b; if(dfs(a,b))cout << "Yes\n"; else cout << "No\n"; }