func_code_string: #include <bits/stdc++.h>   using namespace std;   const int inf = 1000000000;   bool cmp(pair<int, int> a, pair<int, int> b) { return a.second < b.second; }   int main() {     ios::sync_with_stdio(0);     cin.tie(0);     int n;     cin >> n;     int a[n];     for (int i = 0; i < n; i++) cin >> a[i];     sort(a, a + n, greater<int>());     int ans[n];     ans[0] = a[0];     ans[1] = a[1];     for (int i = 2; i < n; i++) {       if (i == 2) {         ans[n - 1] = a[i];       } else {         ans[i - 1] = a[i];       }     }     bool ok = true;     if (a[0] >= a[1] + a[2]) {       ok = false;     }     if (ok) {       cout <<  YES n ;       for (int i = 0; i < n; i++) cout << ans[i] <<    ;     } else {       cout <<  NO n ;     }   }   