#include <bits/stdc++.h>
using namespace std;
int a[10000];
int main() {
  int n, s, i, sum;
  cin >> n >> s;
  sum = 0;
  for (i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  for (i = 0; i <= n - 2; i++) sum += a[i];
  if (sum <= s)
    cout << "YES";
  else
    cout << "NO";
}
