#include <bits/stdc++.h>
using namespace std;
int res[111][111];
int main() {
  ;
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n, a, b;
  cin >> n >> a >> b;
  if (a * b < n) {
    cout << -1 << endl;
    return 0;
  }
  queue<int> q[2];
  for (int i = 1; i <= n; ++i) {
    q[i % 2].push(i);
  }
  for (int i = 0; i < a; ++i) {
    for (int j = 0; j < b; ++j) {
      int w = (i + j + 1) % 2;
      if (q[w].empty()) {
        cout << 0 << " ";
        continue;
      }
      cout << q[w].front() << " ";
      q[w].pop();
    }
    cout << endl;
  }
  return 0;
}
