#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s;
  while (scanf("%d %d\n", &n, &s) != EOF) {
    int mx = 0, sm = 0, a;
    for (int i = 0; i < n; i++) {
      scanf("%d ", &a);
      mx = max(mx, a);
      sm += a;
    }
    sm -= mx;
    printf(sm > s ? "NO\n" : "YES\n");
  }
  return 0;
}
