#include #include #include using namespace std; typedef long long ll; int main() { int n; cin >> n; vector a(n); for(int i=0;i> a[i]; for(int i=1;i<2*n-3;i++) { for(int j=0;2*j < i;j++) { if(a[j] > a[i-j]) { if(j >= n || (i - j) >= n) continue; ll box = a[j]; a[j] = a[i-j]; a[i-j] = box; } } } for(int i=0;i