Reconstruction
The young programmers Peter and Stancho were hired by two cosmic agencies. The agency of Peter designed a new cosmic station, composed of n modules, labeled from 1 to n. Some couples of different modules are linked by corridors in such way that it is possible to go from each module to each other module by unique path of corridors (see the Figure). The length of each of the corridors is positive integer. There is no more then one corridor that links two modules. The chiefs of Peter would like to keep in secret the project. That is why Peter encoded the topology of the station giving for each two modules the distance between them (i.e. the sum of the lengths of the corridors on the unique path between the modules).
Now Stancho has a difficult task - he promised to his bosses to decrypt the coding of Peter and to reconstruct the topology of the station. Unfortunately, Stancho is not experienced enough. Help him. Write a program that solves the task.
Input
The first line contains the number n (3 ≤ n ≤ 1024) of the modules. Then n - 1 lines follow. On the first of these lines the distances from module 1 to modules 2, 3, ..., n are given, separated by single spaces. On the second line re given, separated by single spaces also, the distances from module 2 to modules 3, 4, ..., n, and so on. The last line contains only the distance from module n - 1 to module n. All distances are positive integers not grater than 1024.
Output
The program has to print n lines. The first line has to contain the list of the neighbors of module 1, i.e. the modules that are linked with corridors to it. The list has to start with the number l of neighbors followed by their labels, sorted in increasing order. All numbers has to be separated by single spaces. On the second row of the output, formatted in the same way, the list of the neighbors of module 2 has to be printed, and so on. The output has to finish with the list of the neighbors of module n.