#include using namespace std; const vector dx_2d = {1,-1,0,0}; const vector dy_2d = {0,0,1,-1}; void Yyy(){ cout << "Yes" << endl; } void Nnn(){ cout << "No" << endl; } void fixprecision(){ cout << fixed << setprecision(20); } template bool chmin(T& a,T b){ if(a > b){ a = b; return true; } else return false; } template bool chmax(T& a,T b){ if(a < b){ a = b; return true; } else return false; } int main(){ vector vec(4); for(int i=0;i<4;i++) cin >> vec[i]; sort(vec.begin(),vec.end()); bool flag = true; for(int i=1;i<4;i++) if(vec[i-1]+1 != vec[i]) flag = false; if(flag) Yyy(); else Nnn(); }