Reverse me!#4854

Reverse me!

1 second
128 megabytes
Very easy

Vasya the boy likes to reverse the oriented graphs. Help him in it.

Input

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 .

Output

Print the reverse graph in the same format like the input graph.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading