Aschin is interested in the peaks of a grid. A peak is defined as an element of the grid that is the largest in both the row and column containing that element. Please impress Aschin by constructing an
Constraints
Subtask 1 [30%]
Subtask 2 [70%]
No additional constraints.
Input Specification
The first and only line contains the space-separated integers
Output Specification
Output
Sample Input
Copy
3 2
Sample Output
Copy
9 1 2
8 7 5
4 3 6
Comments