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