#include using namespace std; using ll = long long; template using Pa = pair; template using vec = vector; template using vvec = vector>; int main() { cin.tie(0); ios::sync_with_stdio(false); vec A(4); for(int i=0;i<4;i++) cin >> A[i]; sort(A.begin(),A.end()); bool ok = true; for(int i=0;i<3;i++) ok &= A[i]+1==A[i+1]; cout << (ok? "Yes":"No") << "\n"; }