#include <iostream>
using namespace std;
const int MAX_FR = 501;
const int MAX_SIZE = 100000;
int main() {
int n, v[MAX_SIZE + 1], fr[MAX_FR];
cin >> n;
for (int i = 0; i < MAX_FR; ++i) {
fr[i] = 0;
}
for (int i = 1; i <= n; ++i) {
cin >> v[i];
++fr[v[i]];
}
for (int i = 0; i < MAX_FR; ++i) {
for (int j = 1; j <= fr[i]; ++j) {
cout << i << ' ';
}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY29uc3QgaW50IE1BWF9GUiA9IDUwMTsKY29uc3QgaW50IE1BWF9TSVpFID0gMTAwMDAwOwoKaW50IG1haW4oKSB7CiAgICBpbnQgbiwgdltNQVhfU0laRSArIDFdLCBmcltNQVhfRlJdOwogICAgY2luID4+IG47CiAgICBmb3IgKGludCBpID0gMDsgaSA8IE1BWF9GUjsgKytpKSB7CiAgICAgICAgZnJbaV0gPSAwOwogICAgfQogICAgZm9yIChpbnQgaSA9IDE7IGkgPD0gbjsgKytpKSB7CiAgICAgICAgY2luID4+IHZbaV07CiAgICAgICAgKytmclt2W2ldXTsKICAgIH0KICAgIGZvciAoaW50IGkgPSAwOyBpIDwgTUFYX0ZSOyArK2kpIHsKICAgICAgICBmb3IgKGludCBqID0gMTsgaiA8PSBmcltpXTsgKytqKSB7CiAgICAgICAgICAgIGNvdXQgPDwgaSA8PCAnICc7CiAgICAgICAgfQogICAgfQogICAgcmV0dXJuIDA7Cn0=