#include <bits/stdc++.h>
int main() {
  int n, a, b;
  scanf("%d %d %d", &n, &a, &b);
  if (a * b < n)
    printf("-1");
  else {
    int ans[1000][1000];
    int ac = 1;
    for (int i = (0); i < (a); ++i)
      if (i & 1)
        for (int j = (0); j < (b); ++j) ans[i][j] = ac++;
      else
        for (int j = (b); --j >= (0);) ans[i][j] = ac++;
    for (int i = (0); i < (a); ++i) {
      for (int j = (0); j < (b); ++j) {
        if (ans[i][j] <= n)
          printf("%d ", ans[i][j]);
        else
          printf("0 ");
      }
      puts("");
    }
  }
}
