#include using namespace std; int main() { int N, M; cin >> N >> M; if (N * M % 2) cout << "NO"; else if (N == 1 || M == 1) { if (N == 2 || M == 2) cout << "YES"; else cout << "NO"; } else cout << "YES"; }