func_code_string: #include <bits/stdc++.h>   using namespace std;   int n;   int arr[1005];   int res[1005];   int main() {     ios_base::sync_with_stdio(0);     cin.tie(0);     cin >> n;     for (int i = 0; i < n; ++i) cin >> arr[i];     sort(arr, arr + n);     int ini = 0, fin = n - 1, idx = 0;     while (ini <= fin) {       res[idx] = arr[ini++];       res[idx + 1] = arr[fin--];       idx += 2;     }     for (int i = 0; i < n; ++i) cout << res[i] <<    ;     cout <<   n ;     return 0;   }   