#include <bits/stdc++.h>
using namespace std;
int n, a, b;
int main() {
  cin >> n >> a >> b;
  if (n > a * b) {
    cout << -1 << endl;
    return 0;
  }
  for (; a--;) {
    int c = 0, d = 1, row[128];
    if (b % 2 == 0 && a % 2 > 0) c = b - 1, d = -1;
    for (; c >= 0 && c < b; c += d) row[c] = n ? n-- : 0;
    for (c = 0; c < b; c++) cout << row[c] << " ";
    cout << endl;
  }
}
