#includeint main(int argc, const char * argv[]) {
int n,temp;
scanf("%d",&n);
int a[n];
for (int i = 0; i < n; i++) {
scanf("%d",&a[i]);
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < n - 1 - i; j++) {
if (a[j] > a[j + 1]) {
temp = a[j];
a[j] = a[j + 1];
a[j + 1] = temp;
}
}
}
for (int i = 0; i < n; i++) {
printf("%d ",a[i]);
}
printf("\n");
return 0;
}