#include #include #include #include #include #include #include #include #include #include #include #include #include #include #define MOD 1000000007ll #define INF 1000000000ll #define EPS 1e-10 #define REP(i,m) for(long long i=0; i<(ll)m; i++) #define FOR(i,n,m) for(long long i=n; i<(ll)m; i++) #define DUMP(a) for(long long dump=0; dump<(ll)a.size(); dump++) { cout< P; typedef long double ld; map memo; bool dfs(ll a, ll b) { if(a==0&&b==0) return true; if(a<0||b<0) return false; if(memo.count(P(a,b))) return memo[P(a,b)]; bool d=false; if(a%2==0) d=d|dfs(a/2,b-1); if(b%2==0) d=d|dfs(a-1,b/2); return d; } int main() { ios::sync_with_stdio(false); cin.tie(0); ll a,b; cin>>a>>b; if(dfs(a,b)) cout<<"Yes"<