import java.util.*;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String args[]) {
int N = sc.nextInt();
//array declaration
int [] arr = new int[N];
takeInput(arr);
bubbleSort(arr);
display(arr);
}
public static void takeInput(int [] arr)
{
for(int i=0;i<=arr.length-1;i++)
{
arr[i] = sc.nextInt();
}
}
public static void bubbleSort(int [] arr)
{
int counter = 0;
while(counter<arr.length-1)
{
for(int j=0; j<=arr.length-1-counter; j++)
{
if(arr[j]>arr[j+1])
{
int temp = arr[j];
arr[j] = arr[j+1];
arr[j+1] = temp;
}
}
counter++;
}
}
public static void display(int [] arr)
{
for(int i=0;i<=arr.length-1;i++)
{
System.out.println(arr[i]);
}
}
}
resolve asap