#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, i, j;
  int flag, temp;
  int iter;
  int last;
  int index;
  cin >> n >> a >> b;
  if (n > a * b)
    cout << "-1";
  else {
    if (n == a * b && (a == 1 || b == 1)) {
      if (a == 1) {
        for (i = 1; i < n; i++) cout << i << " ";
        cout << n;
      } else {
        for (i = 1; i < n; i++) cout << i << "\n";
        cout << n;
      }
    } else {
      index = 0;
      for (i = 1; i <= a; i++) {
        if (i % 2 == 0) {
          index += b;
          temp = index;
        }
        for (j = 1; j <= b; j++) {
          if (i % 2 == 1) {
            if (++index <= n)
              cout << index << " ";
            else
              cout << "0 ";
          } else {
            if (temp > n) {
              cout << "0 ";
              temp--;
            } else {
              cout << temp-- << " ";
            }
          }
        }
        cout << "\n";
      }
    }
  }
  return 0;
}
