#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s, cnt = 0;
  cin >> n >> s;
  int arr[100];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  sort(arr, arr + n);
  for (int i = 0; i < n - 1; i++) s -= arr[i];
  if (s >= 0) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
