#include <bits/stdc++.h>
int main() {
  int n, s, sum, max;
  scanf("%d%d", &n, &s);
  max = sum = 0;
  while (n--) {
    int a;
    scanf("%d", &a);
    sum += a;
    if (max < a) max = a;
  }
  sum -= max;
  printf(sum <= s ? "YES\n" : "NO\n");
  return 0;
}
