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