#include <bits/stdc++.h>   using namespace std;   const int inf = int(1e9) + 123;   int main() {     int n, v;     cin >> n >> v;     vector<int> a;     for (int i = 1; i <= n; i++) {       int x;       cin >> x;       a.push_back(x);     }     sort(a.begin(), a.end());     int sum = 0;     for (int i = 0; i < a.size() - 1; i++) {       sum += a[i];     }     if (sum <= v) {       cout <<  YES ;     } else {       cout <<  NO ;     }     return 0;   }   