#define _GLIBCXX_DEBUG #include using namespace std; int main() { int A, B; cin >> A >> B; if(A == B or (A==2 and B==4) or (A==4 and B==2)) cout << "Yes" << endl; else cout << "No" << endl; }