#include <bits/stdc++.h>
int main() {
  int n, m, x, tp;
  while (scanf("%d %d", &n, &m) != EOF) {
    int sum = 0, rt;
    for (int i = 0; i < n; i++) {
      scanf("%d", &x);
      if (i == 0)
        tp = x;
      else if (tp < x)
        tp = x;
      sum += x;
    }
    if (sum - tp <= m)
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
