#include <iostream>
using namespace std;
int main() {
int n, v[100000], fr[501];
cin >> n;
for (int i = 1; i <= 500; ++i) {
fr[i] = 0;
}
for (int i = 1; i <= n; ++i) {
cin >> v[i];
++fr[v[i]];
}
for (int i = 0; i <= 500; ++i) {
for (int j = 1; j <= fr[i]; ++j) {
cout << i << ' ';
}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgaW50IG4sIHZbMTAwMDAwXSwgZnJbNTAxXTsKICBjaW4gPj4gbjsKICBmb3IgKGludCBpID0gMTsgaSA8PSA1MDA7ICsraSkgewogICAgZnJbaV0gPSAwOwogIH0KICBmb3IgKGludCBpID0gMTsgaSA8PSBuOyArK2kpIHsKICAgIGNpbiA+PiB2W2ldOwogICAgKytmclt2W2ldXTsgCiAgfQogIGZvciAoaW50IGkgPSAwOyBpIDw9IDUwMDsgKytpKSB7CiAgICBmb3IgKGludCBqID0gMTsgaiA8PSBmcltpXTsgKytqKSB7CiAgICAgIGNvdXQgPDwgaSA8PCAnICc7CiAgICB9CiAgfQogIHJldHVybiAwOwp9