#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b;
  cin >> n >> a >> b;
  if (n > a * b) {
    printf("-1");
    exit(0);
  }
  int f = 1;
  for (int i = 0; i < a; ++i) {
    vector<int> line(b, 0);
    for (int k = 0; k < b && f <= n; ++k) {
      line[k] = (f++);
    }
    if (b % 2 == 0) {
      if (i & 1) {
        reverse(line.begin(), line.end());
      }
    }
    for (auto el : line) printf("%d ", el);
    printf("\n");
  }
  return 0;
}
