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