#include <bits/stdc++.h>
int main(void) {
  int n, s;
  scanf("%d%d", &n, &s);
  int m = -1;
  for (int zz = 0; zz < (n); zz = zz + 1) {
    int v;
    scanf("%d", &v);
    if (m < v) m = v;
    s -= v;
  }
  if (s + m >= 0)
    printf("YES");
  else
    printf("NO");
  return 0;
}
