#include <bits/stdc++.h>
using namespace std;
#pragma warning(disable : 4996)
int n, s;
int d[109];
int sum;
int main() {
  cin >> n >> s;
  for (int i = 0; i < n; i++) cin >> d[i];
  for (int i = 0; i < n; i++) sum += d[i];
  for (int i = 0; i < n; i++)
    if (sum - d[i] <= s) {
      cout << "YES";
      return 0;
    };
  cout << "NO" << endl;
  return 0;
};
