#include <bits/stdc++.h>
int main() {
  int n, s, a, x = 0, max = 0, i, j;
  scanf("%d %d", &n, &s);
  for (i = 1; i <= n; i++) {
    scanf("%d", &a);
    x = x + a;
    if (a > max) {
      max = a;
    }
  }
  j = x - max;
  if (j > s) {
    printf("NO\n");
  } else {
    printf("YES\n");
  }
  return 0;
}
