import java.math.BigInteger; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.Scanner; import java.util.Set; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); final int n = sc.nextInt(); long[] array = new long[n]; for(int i = 0; i < n; i++){ array[i] = sc.nextLong(); } for(int i = 1; i < 2 * n - 3; i++){ for(int p = 0; p <= i; p++){ final int q = i - p; if(p >= n || q >= n){ continue; } if(array[p] < array[q]){ long tmp = array[p]; array[p] = array[q]; array[q] = tmp; } } } for(int i = 0; i < n; i++){ System.out.print((i == 0 ? "" : " ") + array[i]); } System.out.println(); } }