#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:250000000")
using namespace std;
class leg {
 public:
  int length, energy;
  bool operator<(leg another) { return length < another.length; }
};
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int difer(string& a, string& b) {
  int res = 0;
  for (int i = 0; i < 6; ++i) {
    if (a[i] != b[i]) res++;
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(false);
  int n, a, b;
  cin >> n >> a >> b;
  if (n > a * b) {
    cout << -1 << endl;
    return 0;
  }
  int cur;
  for (int i = 0; i < a; ++i) {
    for (int j = 0; j < b; ++j) {
      cur = j + i * b;
      if (i % 2) cur += b - j - j - 1;
      if (cur < n)
        cout << cur + 1;
      else
        cout << 0;
      cout << " ";
    }
    cout << "\n";
  }
  return 0;
}
