#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b;
  cin >> n >> a >> b;
  if (n > a * b) {
    cout << -1;
    return 0;
  }
  queue<int> democrats;
  queue<int> republic;
  for (int i = 1; i <= n; i++) {
    if (i % 2 == 1)
      democrats.push(i);
    else
      republic.push(i);
  }
  for (int i = 0; i < a; i++) {
    for (int j = 0; j < b; j++) {
      if (i % 2 == 0) {
        if (j % 2 == 0) {
          if (!democrats.empty()) {
            cout << democrats.front() << " ";
            democrats.pop();
          } else
            cout << 0 << " ";
        } else {
          if (!republic.empty()) {
            cout << republic.front() << " ";
            republic.pop();
          } else
            cout << 0 << " ";
        }
      } else {
        if (j % 2 == 1) {
          if (!democrats.empty()) {
            cout << democrats.front() << " ";
            democrats.pop();
          } else
            cout << 0 << " ";
        } else {
          if (!republic.empty()) {
            cout << republic.front() << " ";
            republic.pop();
          } else
            cout << 0 << " ";
        }
      }
    }
    cout << endl;
  }
  return 0;
}
