#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s, c = 0;
  cin >> n >> s;
  int x[n];
  for (int i = 0; i < n; i++) {
    cin >> x[i];
  }
  sort(x, x + n);
  for (int i = 0; i < n - 1; i++) {
    c = c + x[i];
  }
  if (c <= s) {
    cout << "YES";
  } else
    cout << "NO";
}
