#include <bits/stdc++.h>
using namespace std;
void solve() {
  int a, b;
  cin >> a >> b;
  vector<int> v;
  for (int i = 0; i < a; i++) {
    int x;
    cin >> x;
    v.push_back(x);
  }
  sort(v.begin(), v.end());
  int mn = 0;
  for (int i = 0; i < a - 1; i++) {
    mn += v[i];
  }
  cout << (mn <= b ? "YES\n" : "NO\n");
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t = 1, i = 1;
  while (t--) {
    solve();
  }
  return 0;
}
