#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int s, n, a;
  scanf("%d %d\n", &s, &n);
  vector<int> v;
  v.assign(s, 0);
  for (int i = 0; i < s; i++) scanf(" %d", &v[i]);
  sort(v.begin(), v.end());
  bool p = true;
  for (int i = 0; i < s - 1; i++) {
    if ((n - v[i]) >= 0)
      n -= v[i];
    else {
      p = false;
      break;
    }
  }
  if (p)
    printf("YES\n");
  else
    printf("NO\n");
}
