// ConsoleApplication49.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

//#include "stdafx.h"
#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int n;
vector<int> as;

void yukiSort() {
	for (int i = 1; i < (2 * n - 3); i++)
	{
		for (int p = 0; p <= n - 1; p++)
		{
			int q = i - p;
			if (p < q && q <= n - 1) {
				if (as[p] > as[q]) {
					int t = as[p];
					as[p] = as[q];
					as[q] = t;
				}
			}
		}		
	}
}

int main()
{
	cin >> n;
	for (int i = 0; i < n; i++)
	{
		int t;
		cin >> t; as.push_back(t);
	}
	yukiSort();
	cout << as[0];
	for (int i = 1; i < n; i++)
	{
		cout << " " << as[i];
	}
	cout << endl;
    return 0;
}