#include <bits/stdc++.h>
using namespace std;
int s[1000][1000], n, a, b;
int main() {
  cin >> n >> a >> b;
  if (n > a * b) {
    cout << -1;
    return 0;
  }
  int x = 1, y = 1;
  for (int i = 1; i <= n; i++) {
    s[x][y] = i;
    if (x % 2 != 0)
      y++;
    else
      y--;
    if (y % (b + 1) == 0) {
      x++;
      if (x % 2 != 0)
        y = 1;
      else
        y = b;
    }
  }
  for (int i = 1; i <= a; i++) {
    for (int j = 1; j <= b; j++) {
      cout << s[i][j] << " ";
    }
    cout << endl;
  }
}
