#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s;
  cin >> n >> s;
  int sum = 0;
  int maxx = 0;
  for (int i = 0; i < n; ++i) {
    int x;
    cin >> x;
    maxx = max(x, maxx);
    sum += x;
  }
  cout << (sum - maxx > s ? "NO" : "YES") << endl;
  return 0;
}
