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