#include using namespace std; using ll=long long; #define int ll #define FOR(i,a,b) for(int i=int(a);i; using vi=vector; using ld=long double; template ostream& operator<<(ostream& os,const pair& p){ os<<"("< ostream& operator <<(ostream& os,const vector& v){ os<<"["; REP(i,(int)v.size()){ if(i)os<<","; os< void chmax(T& a,U b){ if(a void chmin(T& a,U b){ if(a>b) a=b; } template T Sq(const T& t){ return t*t; } const int inf=LLONG_MAX/3; signed main(){ int n=read(); vi a; REP(i,n)a.PB(read()); FOR(i,1,2*n-3) FOR(p,max(i-(n-1),0LL),min(n-1,i)){ int q=i-p; if(q<=p)break; if(a[p]>a[q])swap(a[p],a[q]); } REP(i,n) print(a[i],i==n-1?1:2); }