#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, a, c;
  cin >> n >> a >> c;
  if (n > a * c)
    cout << -1;
  else {
    long long i = 1;
    for (long long j = 1; j <= a; j++) {
      if ((c % 2 == 0) && (j % 2 == 0)) {
        for (long long k = 0; k < c; k++) {
          cout << (i > n ? 0 : i) << ' ';
          i++;
        }
      } else {
        for (long long k = 0; k < c; k++) {
          cout << (i + c - 2 * k - 1 > n ? 0 : i + c - 2 * k - 1) << ' ';
          i++;
        }
      }
      cout << endl;
    }
  }
  return 0;
}
