#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <algorithm>

using namespace std;

int main()
{
	int n;
	int arr[101];
	while (scanf("%d", &n) != EOF) {
		for (int i = 0; i < n; ++i)
		{
			scanf("%d", &arr[i]);
		}

		sort(arr, arr + n);

		for (int j = 0; j < n; ++j)
		{
			printf("%d ", arr[j]);
		}

		printf("\n");
	}
	system("pause");
	return EXIT_SUCCESS;
}
// 64 位输出请用 printf("%lld")