#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, number[1001], s, temp, number1[1001];
  while (scanf("%d", &n) == 1) {
    cin >> s;
    for (int i = 1; i <= n; i++) {
      cin >> number[i];
    }
    for (int i = 1; i <= n - 1; i++) {
      for (int j = 1; j <= n - i; j++) {
        if (number[j] > number[j + 1]) {
          temp = number[j + 1];
          number[j + 1] = number[j];
          number[j] = temp;
        }
      }
    }
    int sum = 0;
    for (int i = 1; i < n; i++) sum = sum + number[i];
    if (sum <= s)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
