#include <iostream>
using namespace std;
int main(void)
{
ios::sync_with_stdio(false);
cin.tie(NULL);
int arr[10001] = { 0, };
int n;
cin >> n;
for (int i = 0; i < n; i++)
{
int input;
cin >> input;
arr[input]++;
}
for (int i = 1; i < 10001; i++)
{
if (arr[i])
for (int j = 0; j < arr[i]; j++)
cout << i << '\n';
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKHZvaWQpCnsKCWlvczo6c3luY193aXRoX3N0ZGlvKGZhbHNlKTsKCWNpbi50aWUoTlVMTCk7CgoJaW50IGFyclsxMDAwMV0gPSB7IDAsIH07CglpbnQgbjsKCWNpbiA+PiBuOwoKCWZvciAoaW50IGkgPSAwOyBpIDwgbjsgaSsrKQoJewoJCWludCBpbnB1dDsKCQljaW4gPj4gaW5wdXQ7CgkJYXJyW2lucHV0XSsrOwoJfQoKCWZvciAoaW50IGkgPSAxOyBpIDwgMTAwMDE7IGkrKykKCXsKCQlpZiAoYXJyW2ldKQoJCQlmb3IgKGludCBqID0gMDsgaiA8IGFycltpXTsgaisrKQoJCQkJY291dCA8PCBpIDw8ICdcbic7Cgl9CglyZXR1cm4gMDsKfQ==