Given a rectangle array n×m in size. Rotate it by 90 degrees clockwise, by recording the result into the new array m×n in size.
Input data format
Input consists of the two numbers n and m, not exceeding 100, and then an array n×m in size.
Output data format
Output the resulting array. Separate numbers by a single space in the output.