#include using namespace std; int main() { int A,B; cin >> A >> B; if (A==B) { cout << "Yes" << endl; } else if (A*B==8 && A+B==6) { cout << "Yes" << endl; } else { cout << "No" << endl; } }