#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, in[1001], sum = 0;
  cin >> n >> k;
  bool koko = false;
  for (int i = 0; i < n; i++) {
    cin >> in[i];
  }
  sort(in, in + n);
  for (int i = 0; i < n - 1; i++) {
    k -= in[i];
  }
  if (k >= 0)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
