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