func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n;     cin >> n;     int a[n];     for (int i = 0; i < n; i++) cin >> a[i];     sort(a, a + n);     bool flag = true;     for (int i = 0; i < n; i++) {       if (i == 0) {         int l = a[1];         int r = a[2];         if (a[i] >= l + r) flag = false;       } else if (i == n - 1) {         int l = a[n - 3];         int r = a[n - 2];         if (a[i] >= l + r) flag = false;       } else {         int l, r;         if (i + 2 > n - 1)           r = a[n - 1];         else           r = a[i + 2];         if (i - 2 < 0)           l = a[0];         else           l = a[i - 2];         if (a[i] >= l + r) flag = false;       }     }     if (flag == false)       cout <<  NO n ;     else {       cout <<  YES n ;       cout << a[0] <<    ;       int i = 1;       while (i < n) {         cout << a[i] <<    ;         i = i + 2;       }       if (n % 2)         i = n - 1;       else         i = n - 2;       while (i >= 2) {         cout << a[i] <<    ;         i = i - 2;       }     }   }   