Transpose a 3x3 matrix across the anti-diagonal Write a program which takes a 3x3 matrix on stdin and prints its transpose along the anti-diagonal to stdout. You may assume that all elements of the matrix will be integers. Columns are space-separated and rows are newline-separated.

Example

Input:

1 2 3
3 4 5
1 2 3


Output:

3 5 3
2 4 2
1 3 1


Input:

1 2 3
4 5 6
7 8 9


Output:

9 6 3
8 5 2
7 4 1
APL - 7
⌽⍉⌽3 3⍴

Example input:
⌽⍉⌽3 3⍴1 2 3 3 4 5 1 2 9
&gt; 9 5 3
  2 4 2
  1 3 1

ngn APL demo