#include <bits/stdc++.h>
const double E = 2.7182818284590452353602874713527;
using namespace std;
char ch[1000000], ch1[1000000];
long ara[1000000], ara1[1000000];
int main() {
  long i, j, k, res, num, cnt = 0, n, sum = 0, s;
  scanf("%ld %ld", &n, &s);
  for (i = 0; i < n; i++) {
    scanf("%ld", &ara[i]);
  }
  num = n - 1;
  sort(ara, ara + n);
  for (i = 0; i < n - 1; i++) {
    sum += ara[i];
  }
  if (sum <= s) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}
