public class Solution { public static void main(String[] args) throws Exception { Scanner sc1 = new Scanner(System.in); int l; int y; int r; int x = sc1.nextInt(); int[] n = new int[x]; for (l = 0; l<x; l++) { n[l] = sc1.nextInt(); } for(l=0; l<x; l++) { for(y = l +1; y<x; y++) { if (n[l] > n[y]) { r = 0; r = n[l]; n[l] = n[y]; n[y] = r; } } } for(l = 0; l<x; l++) { System.out.print(n[l]); } System.out.print(n[l]); } }