#include <bits/stdc++.h>
using namespace std;
int n, s, a[10000];
int main() {
  ios_base::sync_with_stdio(false);
  int i, tot = 0, mx = -1;
  cin >> n >> s;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    tot += a[i];
    mx = max(mx, a[i]);
  }
  tot -= mx;
  if (tot <= s) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
  return 0;
}
