#include <iostream>
using namespace std;
int n;
int a[10001];
int main() {
scanf("%d", &n);
for (int i = 0; i < n; i++) {
int input;
scanf("%d", &input);
a[input]++;
}
for (int i = 0; i < 10001; i++) {
while (a[i] != 0) {
printf("%d\n", i);
a[i]--;
}
}
}