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