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