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