#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  if (a < b) {
    a ^= b;
    b ^= a;
    a ^= b;
  }
  return (a - b) ? gcd(a - b, b) : a;
}
void solve() {
  int n, s, x, m = -1;
  cin >> n >> s;
  for (int i = 0; i < n; i++) {
    cin >> x;
    if (m < x) m = x;
    s -= x;
  }
  if (s + m < 0)
    cout << "NO";
  else
    cout << "YES";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  solve();
  return 0;
}
