#include <bits/stdc++.h>
using namespace std;
int main() {
  int p, n, m;
  cin >> p >> n >> m;
  if (p > n * m)
    cout << "-1\n";
  else {
    for (int i = 0; i < n; i++) {
      int s, e;
      s = i * m + 1;
      e = (i + 1) * m;
      if (i % 2 == 0 || (m % 2 == 1)) {
        for (int j = s; j <= e; j++)
          if (j <= p)
            cout << j << ' ';
          else
            cout << "0 ";
        cout << '\n';
      } else {
        for (int j = e; j >= s; j--)
          if (j <= p)
            cout << j << ' ';
          else
            cout << "0 ";
        cout << '\n';
      }
    }
  }
  return 0;
}
