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