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