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