#include <bits/stdc++.h>
int a[101][101];
int main() {
  int k, n, m;
  scanf("%d%d%d", &k, &n, &m);
  if (k > n * m) {
    printf("-1\n");
  } else {
    int count = 1;
    if (m % 2 == 1) {
      for (int i = 1; i <= n; i++) {
        for (int j = 1; j <= m; j++) {
          if (count <= k)
            a[i][j] = count++;
          else
            a[i][j] = 0;
        }
      }
    } else {
      for (int i = 1; i <= n; i++) {
        if (i % 2 == 1) {
          for (int j = 1; j <= m; j++) {
            if (count <= k)
              a[i][j] = count++;
            else
              a[i][j] = 0;
          }
        } else {
          for (int j = 1; j <= m; j++) {
            if (count <= k)
              a[i][m - j + 1] = count++;
            else
              a[i][m - j + 1] = 0;
          }
        }
      }
    }
    for (int i = 1; i <= n; i++) {
      for (int j = 1; j <= m; j++) {
        printf("%d ", a[i][j]);
      }
      printf("\n");
    }
  }
}
