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