#include <bits/stdc++.h>
using namespace std;
int n, s, sum, ma;
int main() {
  scanf("%d%d", &n, &s);
  for (int i(0); i < n; ++i) {
    int a;
    scanf("%d", &a);
    sum += a, ma = ma > a ? ma : a;
  }
  sum -= ma;
  if (sum > s)
    puts("NO");
  else
    puts("YES");
}
