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

Задача 37050. 12.25h


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 13 9 5 1
 18 14 10 6 2
 19 15 11 7 3
 20 16 12 8 4