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