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