public static void main(String[] args) throws Exception {
        FastScanner sc = new FastScanner(System.in);
        int N = sc.nextInt();
        Integer[] in = sc.nextIntArray();
        int min = Integer.MAX_VALUE;
        for (int item : in) {
            if (item > 0 && item < min) {
                min = item;
            }
        }
        List<Integer> in1 = Arrays.asList(in);
        Collections.sort(in1);
        solve(in);
    }