#include #include #include using namespace std; int main(){ int n, tmp; cin >> n; vector v; for(int i=0; i> tmp; v.push_back(tmp); } for(int i=1; i<2*n-3; i++){ for(int j=0; j<=i/2; j++){ if(i-j >= n) continue; //cout << j << "\t" << i-j << endl; if(v[j] > v[i-j]){ tmp = v[j]; v[j] = v[i-j]; v[i-j] = tmp; } } } for(int i:v) cout<< i << " "; cout << endl; }