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