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