#include <bits/stdc++.h>
int main() {
  int x, y, j, i, a[100], m;
  while (~scanf("%d%d", &x, &y)) {
    j = 0;
    for (i = 0; i < x; i++) {
      scanf("%d", &a[i]);
      if (i == 0)
        m = a[i];
      else if (m < a[i])
        m = a[i];
      j += a[i];
    }
    if ((j - m) <= y)
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
