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