#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c, d = 0, e = 0, f = 0, g = 0, h[200001], i = 1, j, k,
                     p[200001], r, n[200001], m[200001];
  string s, t, x;
  cin >> a >> b;
  for (i = 1; i <= a; i++) {
    cin >> p[i];
    d += p[i];
  }
  sort(p + 1, p + a + 1);
  if (d - p[a] <= b) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}
