Rotation#2669

Rotation

1 second
128 megabytes
Very easy

An array of size n \times m is given. Rotate it 90^\circ clockwise.

Input

The first line contains two positive integers and , where 1 \le n, m \le 50.

Each of the next lines contains non-negative integers, each not exceeding 10^9 — the elements of the array.

Output

Print the resulting array in the same format as in the input.

Examples

Example 1

Loading
Loading