#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const long long INF = 1000000007;
const long long INF2 = 1000000007LL * 1000000007LL;
const long double EPS = 1e-9;
const int SIZE = 2001;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, s;
  cin >> n >> s;
  vector<int> v(n);
  for (int& i : v) cin >> i;
  sort(begin(v), end(v));
  v.pop_back();
  for (int& i : v) s -= i;
  cout << (s >= 0 ? "YES" : "NO");
  return 0;
}
