public class Solution {
    public static int[][] multiArray;

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int input = scanner.nextInt();
        if (input > 0) {
            int times = input;
            multiArray = new int[input][];
            for (int i = 0; i < input; i++) {
                multiArray[i] = new int[i + 1];
            }
            while (times-- > 0 && scanner.hasNext()) {
                int second = scanner.nextInt();
                if (second > 0) {
                    for (int i = 0; i < multiArray.length; i++) {
                        for (int j = 0; j < multiArray[i].length; j++) {
                            multiArray[i] = new int[i+1];
                        }
                    }
                }
            }
        }
        for (int i = 0; i < multiArray.length; i++) {
            for (int j = 0; j < multiArray[i].length; j++) {
                System.out.print(multiArray[i][j]);
            }
            System.out.println();
        }
    }
}