#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b;
  while (cin >> n >> a >> b) {
    if (n > a * b) {
      cout << "-1" << endl;
      continue;
    }
    if (b % 2) {
      int cur = 1;
      for (int i = 0; i < a; i++) {
        for (int j = 0; j < b; j++) {
          if (cur <= n)
            printf("%d", cur++);
          else
            printf("0");
          if (j != b - 1) printf(" ");
        }
        printf("\n");
      }
    } else {
      int cur = 1;
      for (int i = 0; i < a; i++) {
        if (i % 2 == 0) {
          for (int j = 0; j < b; j++) {
            if (cur <= n)
              printf("%d", cur++);
            else
              printf("0");
            if (j != b - 1) printf(" ");
          }
        } else {
          for (int j = b - 1; j >= 0; j--) {
            if ((cur + j) <= n) {
              printf("%d", (cur + j));
            } else
              printf("0");
            if (j != 0) printf(" ");
          }
          cur += b;
        }
        printf("\n");
      }
    }
  }
  return 0;
}
