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