Transpose the matrix#9537

Transpose the matrix

1 second
128 megabytes
Very easy

Given matrix . Transpose it.

Let be the transposed matrix . Then B_{ij} = A_{ji}.

prb9537.gif

Input

The first line contains the size of the matrix and (1 \le n, m \le 100). Each of the next lines contains integers and describe the matrix .

Output

Print the transposed matrix : lines, each with integers.

Examples

Example 1

Loading
Loading