func_code_string: #include <bits/stdc++.h>   using namespace std;   template <typename T, typename T1>   T amax(T a, T1 b) {     if (b > a) a = b;     return a;   }   template <typename T, typename T1>   T amin(T a, T1 b) {     if (b < a) a = b;     return a;   }   template <typename T>   T amod(T a) {     if (a < 0) a = -a;     return a;   }   void solve() {     long long int n, s, a, sum = 0;     cin >> n >> s;     long long int maxs = 0;     for (long long int i = 0; i < n; i++) {       cin >> a;       sum += a;       maxs = max(a, maxs);     }     if ((sum - maxs) <= s) {       cout <<  YES ;     } else {       cout <<  NO ;     }   }   int main() {     long long int t;     t = 1;     while (t--) {       solve();     }     return 0;   }   