#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, s;
  int sum = 0, MAX = 0;
  scanf("%d%d", &n, &s);
  while (n--) {
    int num;
    scanf("%d", &num);
    sum += num;
    MAX = max(MAX, num);
  }
  if (sum - MAX > s)
    printf("NO\n");
  else
    printf("YES\n");
  return 0;
}
