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