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

Задача 37060. 12.25


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