import java.util.Scanner;
public class student74 {
public static void main(String[] args) {
int sum;
Scanner scanner = new Scanner(System.in);
while(scanner.hasNext()){
int n = scanner.nextInt();
int classment [] = new int [n];
for(int x=0 ; x<n ; x++){
classment [x] = scanner.nextInt();
}
for(int i=0; i <n-1; i++){
for ( int j = i+1 ; j < n;j++){
if(classment[i]>classment[j]){
sum = classment [i];
classment[i]= classment[j];
classment[j]= sum;
}
}
}
for(int y=0; y <n; y++){
System.out.print(classment[y]+" ");
}
}
}
}