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