import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int[] arr=new int[n];
for(int i=0;i<n;i++)
arr[i]=sc.nextInt();
quickSort(arr,0,n-1);
for(int i=0;i<n;i++)
System.out.print(arr[i]+" ");
}
private static void quickSort(int[] array,int low,int high){
if(low<high){
int index=getIndex(array,low,high);
quickSort(array,low,index-1);
quickSort(array,index+1,high);
}
}
private static int getIndex(int[] array,int low,int high){
int base=array[low];
while(low<high){
while(low<high&&base<=array[high])high--;
array[low]=array[high];
while(low<high&&base>=array[low])low++;
array[high]=array[low];
}
array[low]=base;
return low;
}
}