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