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