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