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