#include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int a, b; cin >> a >> b; if (a > b) swap(a, b); if (a == b || (a == 2 && b == 4)) cout << "Yes" << '\n'; else cout << "No" << '\n'; return 0; }