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