#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, a, b;
  cin >> n >> a >> b;
  vector<vector<int>> p(a, vector<int>(b, 0));
  if (a * b < n)
    cout << "-1\n";
  else {
    if (b % 2) {
      int i = 0;
      for (int j = 0; j < a; j++) {
        for (int k = 0; k < b; k++) {
          if (++i <= n)
            p[j][k] = i;
          else
            break;
        }
      }
    } else {
      int i = 0;
      for (int j = 0; j < a; j++) {
        for (int k = 0; k < b; k++) {
          if (++i <= n)
            p[j][k] = i;
          else
            break;
        }
      }
      for (int j = 0; j < a; j++) {
        if (j % 2) {
          reverse(p[j].begin(), p[j].end());
        }
      }
    }
    for (auto k : p) {
      for (auto y : k) cout << y << " ";
      cout << "\n";
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  solve();
  return 0;
}
