#include <bits/stdc++.h>
using namespace std;
inline long long getnum() {
  char c = getchar();
  int num, sign = 1;
  for (; c < '0' || c > '9'; c = getchar())
    if (c == '-') sign = -1;
  for (num = 0; c >= '0' && c <= '9';) {
    c -= '0';
    num = num * 10 + c;
    c = getchar();
  }
  return num * sign;
}
int ans[103][103];
int main() {
  int n = getnum(), a = getnum(), b = getnum();
  if (n > a * b) {
    puts("-1");
    return 0;
  }
  for (int i = 1; i <= a; i++) {
    int l, r, x;
    if (i % 2)
      l = 1, r = b + 1, x = 1;
    else
      l = b, r = 0, x = -1;
    for (int j = l; j != r; j += x) {
      ans[i][j] = n;
      if (n > 0) n--;
    }
  }
  for (int i = 1; i <= a; i++, puts(""))
    for (int j = 1; j <= b; j++) printf("%d ", ans[i][j]);
}
