import java.util.*; import java.io.*; import java.math.*; public class No490 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(),a[]=new int[2000],t,i,j; for(i=0;in-1||0>i-j) continue; if(a[i-j]>a[j]) { t=a[j]; a[j]=a[i-j]; a[i-j]=t; } } } for(i=0;i