#include <bits/stdc++.h>
int main() {
  int n, s, v, t(0), m(0);
  std::scanf("%d%d", &n, &s);
  for (int i(0); i < n; ++i) {
    std::scanf("%d", &v);
    t += v;
    m = std::max(m, v);
  }
  t -= m;
  std::puts(t <= s ? "YES" : "NO");
  return 0;
}
