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