#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(false);
  std::cin.tie(nullptr);
  int a, b, n;
  cin >> n >> a >> b;
  if (n > a * b) {
    cout << -1 << endl;
    return 0;
  }
  vector<vector<int>> hall(a, vector<int>(b, 0));
  int id = 1;
  bool to_right = true;
  for (int row = 0; row < a; ++row) {
    int first = (to_right ? 0 : b - 1);
    int last = b - 1 - first;
    int delta = (to_right ? 1 : -1);
    for (int col = first; col != last + delta; col += delta) {
      hall[row][col] = id++;
      if (id > n) {
        break;
      }
    }
    to_right ^= 1;
    if (id > n) {
      break;
    }
  }
  for (int row = 0; row < a; ++row) {
    for (int col = 0; col < b; ++col) {
      cout << hall[row][col] << ' ';
    }
    cout << '\n';
  }
  return 0;
}
