#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b;
  cin >> n >> a >> b;
  if (n > a * b) {
    cout << -1;
    return 0;
  }
  int rows[a][b];
  memset(rows, 0, sizeof(rows[0][0]) * a * b);
  for (int i = 0; i < n; i++) {
    int row = i / b;
    int col = i % b;
    if (row % 2 == 1 && b % 2 == 0) {
      if (i % 2 == 1) {
        rows[row][col - 1] = i + 1;
      } else {
        rows[row][col + 1] = i + 1;
      }
    } else {
      rows[row][col] = i + 1;
    }
  }
  for (int i = 0; i < a; i++) {
    for (int j = 0; j < b; j++) {
      if (rows[i][j] == 0) {
        cout << 0 << " ";
      } else {
        cout << rows[i][j] << " ";
      }
    }
    cout << "\n";
  }
}
