#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  while (scanf("%d%d", &n, &m) != EOF) {
    int a[10000];
    memset(a, 0, sizeof(a));
    int i;
    for (i = 0; i < n; i++) scanf("%d", &a[i]);
    sort(a, a + n);
    int sum = 0;
    for (i = 0; i < n - 1; i++) {
      sum += a[i];
    }
    if (sum > m)
      printf("NO\n");
    else
      printf("YES\n");
  }
  return 0;
}
