/**
 * Created by IntelliJ IDEA.
 * User: m09aaa
 * Date: 30.09.2009
 * Time: 17:27:57
 * To change this template use File | Settings | File Templates.
 */

/**
 * Created by IntelliJ IDEA.
 * User: m09aaa
 * Date: 30.09.2009
 * Time: 17:27:57
 * To change this template use File | Settings | File Templates.
 */
import java.util.*;
 import java.io.*;

   public class XD {
        public static void main ( String[] args ) throws Exception {
       Scanner in=new Scanner (new File("sort.in"));
            int n=in.nextInt();
            int i;
            int [] a=new int[n];
             for (i=0;i<n; i++)    {  a[i] =in.nextInt();}
                   int min;
                   int x=-1;
                 for (i=0;i<n; i++) {
                      for (int j=i+1;j<n; j++) {min=a[i]; if (a[j]<min){
                          x=a[i];
                          a[i]=a[j];
                          a[j]=x;
                      }}
                 }



PrintWriter out=new PrintWriter (new File("sort.out"));
                     for (i=0;i<n; i++)  {out.println(a[i]);}
                      out.close ();
   }
   }


