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