#include <bits/stdc++.h>
using namespace std;
void smain();
int main() {
  smain();
  return 0;
}
long long n, a, b, res[202][202];
void smain() {
  for (; cin >> n >> a >> b;) {
    if (a * b < n) {
      cout << "-1\n";
      continue;
    }
    for (long long i = 0; i < a; i++)
      for (long long j = 0; j < b; j++) res[i][j] = i * b + j + 1;
    for (long long i = 0; i < a; i++)
      if (i & 1) reverse(res[i], res[i] + b);
    for (long long i = 0; i < a; i++) {
      for (long long j = 0; j < b; j++)
        cout << (res[i][j] > n ? 0 : res[i][j]) << ' ';
      cout << endl;
    }
  }
}
