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