#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(NULL);
  cin.tie(NULL);
  int n, s;
  cin >> n >> s;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  int sum = 0;
  for (int i = 0; i < n; i++) {
    sum += a[i];
  }
  sort(a.begin(), a.end());
  if (sum - a[n - 1] <= s)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
