#include <bits/stdc++.h>
using namespace std;
vector<int> v;
int main() {
  int n, s, x, add = 0;
  cin >> n >> s;
  for (int i = 0; i < n; i++) {
    cin >> x;
    v.push_back(x);
  }
  sort(v.begin(), v.end());
  for (int i = 0; i < n - 1; i++) {
    add += v[i];
  }
  if (add <= s) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
