#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s;
  cin >> n >> s;
  int in;
  int sum = 0;
  int maxx = -1;
  for (int i = 0; i < n; i++) {
    cin >> in;
    sum += in;
    maxx = max(maxx, in);
  }
  if (sum - maxx <= s) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
