二維陣列反轉

Description

請將使用者給定的 �∗�nm 的二維陣列進行轉置(行和列交換)。

Please transpose the �∗�nm two-dimensional array given by the user (exchange rows and columns).

Input

輸入包含以下資訊:

The input contains the following information:

Output

請輸出轉置後的二維陣列。

Please output the transposed two-dimensional array.

Sample Input 1

3 2
1 2
3 4
5 6

Sample Output 1

1 3 5
2 4 6

Sample Input 2

10 10
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
9 8 7 6 5 4 3 2 1 0
9 8 7 6 5 4 3 2 1 0
9 8 7 6 5 4 3 2 1 0
9 8 7 6 5 4 3 2 1 0
9 8 7 6 5 4 3 2 1 0