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