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