#include <bits/stdc++.h>
using namespace std;
int n, a, b;
int c[101][101];
void doc() {
  cin >> n >> a >> b;
  if (n > a * b)
    cout << -1;
  else {
    int u = 1, v = 1, dd = 1;
    for (int i = 1; i <= n; i++) {
      c[u][v] = i;
      if (v == 1 && dd == -1 || v == b && dd == 1) {
        u++;
        if (v == 1 && dd == -1)
          dd = 1;
        else
          dd = -1;
      } else
        v = v + dd;
    }
    for (int i = 1; i <= a; i++) {
      for (int j = 1; j <= b; j++) cout << c[i][j] << " ";
      cout << "\n";
    }
  }
}
int main() { doc(); }
