#include using namespace std; int main(){ int n,m,c; cin>>n>>m>>c; if(n==1||m==1){ if(n+m==3) cout<<"YES"<