#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s, x, maxx = 0, sum = 0;
  scanf("%d%d", &n, &s);
  for (int i = 0; i < n; i++) {
    scanf("%d", &x);
    if (x > maxx) maxx = x;
    sum += x;
  }
  sum -= maxx;
  if (sum <= s)
    puts("YES");
  else
    puts("NO");
  return 0;
}
