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