#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int n, m, c; cin >> n >> m >> c; if(n == 1 || m == 1) { if(n * m == 2) { cout << "YES" << endl; } else { cout << "NO" << endl; } } if(n % 2 && m % 2) { cout << "NO" << endl; } else { cout << "YES" << endl; } return 0; }