#include using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < (n); i++) #define P pair int main() { int a, b; cin >> a >> b; string ans = "No"; if (a == b) ans = "Yes"; if (a==2 && b==4) ans = "Yes"; if (a==4 && b==2) ans = "Yes"; cout << ans << endl; }