#include using namespace std; bool solve(int a, int b){ if(a == b) return true; else{ if(a == 2 && b == 4 || a == 4 && b == 2) return true; else return false; } } int main(){ ios::sync_with_stdio(false); cin.tie(0); int a, b; cin >> a >> b; if(solve(a, b)) cout << "Yes" << '\n'; else cout << "No" << '\n'; return 0; }