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