#include "bits/stdc++.h" using namespace std; int main(){ int N, M; cin >> N >> M; if (N == 1 || M == 1){ if (N * M == 2) cout << "YES" << endl; else cout << "NO" << endl; } else if (N % 2 && M % 2) cout << "NO" << endl; else cout << "YES" << endl; }