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