#include <bits/stdc++.h>
int main() {
  long currentMax(0), total(0);
  long n(0), s(0);
  scanf("%ld %ld\n", &n, &s);
  while (n--) {
    int temp(0);
    scanf("%d", &temp);
    if (temp > currentMax) {
      currentMax = temp;
    }
    total += temp;
  }
  total -= currentMax;
  if (total <= s) {
    puts("YES");
  } else {
    puts("NO");
  }
  return 0;
}
