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