#include <bits/stdc++.h>
using namespace std;
int s, n, mugs[110], aux;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> s;
  for (int i = 0; i < n; i++) cin >> mugs[i];
  sort(mugs, mugs + n);
  for (int i = 0; i < n - 1; i++) aux += mugs[i];
  if (aux <= s) {
    cout << "YES";
  } else
    cout << "NO";
}
