#include <bits/stdc++.h>
using namespace std;
const int inf = 2e9;
const int N = 5e5 + 11;
int main() {
  int n, s;
  cin >> n >> s;
  int mx = -inf;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    mx = max(mx, x);
    s -= x;
  }
  s += mx;
  if (s < 0)
    puts("NO");
  else
    puts("YES");
  return 0;
}
