Олимпиадный тренинг

Задача 37075. 12.25n


Numbers n and m are given. Create an array A[n][m] and fill it as shown in the example.

Input: The program receives two numbers n and m as input.
Output: The program should output the resulting array, putting exactly 3 characters for each number.

Examples
# Input Output
1 4 5
 17 16 9 8 1
 18 15 10 7 2
 19 14 11 6 3
 20 13 12 5 4