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