#include using namespace std; typedef long long ll; typedef pair l_l; typedef pair i_i; template inline bool chmax(T &a, T b) { if(a < b) { a = b; return true; } return false; } template inline bool chmin(T &a, T b) { if(a > b) { a = b; return true; } return false; } const long double EPS = 1e-10; const long long INF = 1e18; const long double PI = acos(-1.0L); //const ll mod = 1000000007; int main() { //cout.precision(10); cin.tie(0); ios::sync_with_stdio(false); vector v(4); for(int i = 0; i < 4; i++) { cin >> v[i]; } sort(v.begin(), v.end()); for(int i = 0; i < 3; i++) { if(v[i] + 1 != v[i+1]) { cout << "No" << endl; return 0; } } cout << "Yes" << endl; return 0; }