#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  int n, a, b;
  cin >> n >> a >> b;
  int all = a * b;
  int white = all / 2;
  int black = all - white;
  int even = n / 2;
  int odd = n - even;
  int dep[] = {even, odd};
  if (white >= even && black >= odd) {
    for (int(i) = (0); i < (a); ++(i)) {
      for (int(j) = (0); j < (b); ++(j)) {
        int cel = i + j;
        cel %= 2;
        cel ^= 1;
        int ans = 0;
        if (dep[cel]) {
          ans = dep[cel] * 2 - cel;
          dep[cel]--;
        }
        cout << ans << " ";
      }
      cout << endl;
    }
  } else {
    cout << -1;
  }
  return 0;
}
