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