#include <bits/stdc++.h>
int main() {
  int n, s, i, j, a[105], total, check;
  while (scanf("%d%d", &n, &s) != EOF) {
    for (i = 0; i < n; i++) scanf("%d", &a[i]);
    check = 0;
    for (i = 0; i < n; i++) {
      total = 0;
      for (j = 0; j < n; j++) total = total + a[j];
      total = total - a[i];
      if (total <= s) {
        printf("YES\n");
        check = 1;
        break;
      }
    }
    if (check != 1) printf("NO\n");
  }
  return 0;
}
