#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 < 5; i++) {
for (int j = i + 1; j < 5; j++) {
if (a[i] > a[j]) {
temp = a[i];
a[i] = a[j];
a[j] = temp;
}
}
}
for (int i = 0; i < n; i++) {
printf("%d ",a[i]);
}
printf("\n");
return 0;
}