#include <bits/stdc++.h>
using namespace std;
const int N = 100010;
int main() {
  int n, s;
  cin >> n >> s;
  int a[N] = {0};
  int mini = N, pos = -1, ans = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int k = 0; k < n - 1; k++) {
    for (int i = 0; i < n; i++) {
      if (mini > a[i]) {
        mini = a[i];
        pos = i;
      }
    }
    if (pos != -1) a[pos] = N + 1;
    ans += mini;
    mini = N;
  }
  if (ans <= s)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
