#include using namespace std; int main(){ int a,b;cin>>a>>b; if(a>b)swap(a,b); bool ok = a==b || (a==2 && b==4); cout << (ok?"Yes":"No") << endl; }