Rotation
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
The array of size is given. Rotate it degrees clockwise.
Input
The first line contains two integers and . Each of the next lines contains nonnegative integers, not greater than — it is the array itself.
Output
Print the rotated array in the same format as input.
Examples
Input #1
Answer #1
Submissions 15K
Acceptance rate 50%