#define _CRT_SECURE_NO_WARNiINGS #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define eps 0.000000001 #define LONG_INF 10000000000000000 #define GOLD 1.61803398874989484820458 #define MAX_MOD 1000000007 #define REP(i,n) for(long long i = 0;i < n;++i) #define cycle_per_sec 2806192512 int can_do(long long a, long long b) { if (a < 0 || b < 0) return 0; if (a == 0 || b == 0) return 1; int hoge = 0; if (a % 2 == 0) hoge += can_do(a / 2, b - 1); if (b % 2 == 0) hoge += can_do(a - 1, b / 2); if (hoge >= 1) return 1; return 0; } int main() { long long x, y; cin >> x >> y; if (x > y) swap(x, y); if (can_do(x, y) == 0) { cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }