#include <bits/stdc++.h>
using namespace std;
void solve();
const int N = 10000005;
int i, n, sum;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  while (t--) {
    solve();
    cout << "\n";
  }
  return 0;
}
void solve() {
  int s;
  cin >> n >> s;
  int a[n];
  int ma = INT_MIN;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
    ma = max(ma, a[i]);
  }
  if (sum - ma <= s)
    cout << "YES";
  else
    cout << "NO";
}
