Matrix
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Two positive integers n and m are given. Print the matrix that consists of n lines and m columns, filled with positive integers from 1 to n * m, as shown in the sample.
Input
Two positive integers n and m (1 ≤ n, m ≤ 100).
Output
Print the required matrix.
Examples
Input #1
Answer #1
Submissions 18K
Acceptance rate 59%