#include using namespace std; using ll = long long; using ld = long double; #ifdef LOCAL #include #else #define debug(...) void(0) #endif #include using namespace atcoder; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int A, B; cin >> A >> B; if(A == B) cout << "Yes" << endl; else { if((A == 2 && B == 4) || (A == 4 && B == 2)) cout << "Yes" << endl; else cout << "No" << endl; } }