#include #include #include #include #include #include #include #include #include #pragma GCC optimize("O3") #pragma comment(linker, "STACK:36777216") using namespace std; using i64 = int64_t; constexpr i64 mod = 1e9 + 7; using vi = vector; using vvi = vector; using ii = pair; using vii = vector; bool dfs(int x, int y) { if (x == 0 && y == 0) return true; if (x % 2 == 0 && y % 2 == 0) { return dfs(x / 2, y - 1) || dfs(x - 1, y / 2); } if (y % 2 == 0) { return dfs(y, x); } if (x % 2 == 0) { return dfs(x / 2, y - 1); } return false; } int main() { int a, b; cin >> a >> b; cout << (dfs(a, b) ? "Yes" : "No") << endl; }