Killjee has got a matrix and now he is trying represent it in a ZIg-Zag format.
The zigzag format of a matrix is representation of its diagonals in separate line.
Where, line of output contains top right - bottom left diagonal if I is odd.
line of output should contain bottom left - top right diagonal. If I is even.
See sample explanation for better understanding.
INPUT
First line of input contain two space separated integers and , where is number of rows in matrix and is number of columns in matrix.
OUTPUT
Output Zig-Zag representation of given matrix;
CONSTRAINTS
In 1st line we will print top right - bottom left diagonal which is : 1
In line we will print bottom left - top right diagonal: 5 2. As, 1st bottom left-top right diagonal is 1
In line we will print top right - bottom left diagonal: 3 6 9. As, top right-bottom left diagonal is 2 5