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