#include #include using namespace std; using namespace atcoder; typedef long long ll; #define rep(i, a, b) for (ll i = a; i < b; i++) #define rrep(i, a, b) for (ll i = a; i >= b; i--) using mint = modint1000000007; void chmin(ll &x, ll y) { x = min(x, y); } void chmax(ll &x, ll y) { x = max(x, y); } int main() { cin.tie(0); ios_base::sync_with_stdio(false); ll A, B; cin >> A >> B; if(A>B) swap(A,B); if(A==B || ( A==2 && B== 4 ) ) cout << "Yes"<< endl; else cout << "No" << endl; return 0; }