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