Vasya the boy likes to reverse the oriented graphs. Help him in it.
The first number is (1 \le n \le 50000) - the number of vertices in a graph. The next lines contain the graph in the form of adjacency list: the -th line contains the list of vertices in increasing order that are adjacent to -th vertex. The numeration of vertices starts with one. It is guaranteed that the number of edges in a graph is no more than .
Print the reverse graph in the same format like the input graph.
Example 1
Example 2