#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s, arr[120], sum;
  while (scanf("%d%d", &n, &s) != EOF) {
    sum = 0;
    memset(arr, 0, 120);
    for (int i = 0; i < n; i++) scanf("%d", &arr[i]);
    sort(arr, arr + n);
    for (int j = 0; j < n - 1; j++) sum = sum + arr[j];
    if (sum <= s)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
