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