#include <bits/stdc++.h>
using namespace std;
vector<int> a;
bool cmp(int x, int b) { return a[x] < a[b] || a[x] == a[b] && x < b; };
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, m, k;
  cin >> n >> m >> k;
  a.resize(n);
  for (int i = 0; i < n; ++i) cin >> a[i];
  vector<int> ind(n);
  for (int i = 0; i < n; ++i) ind[i] = i;
  sort(ind.begin(), ind.end(), cmp);
  reverse(ind.begin(), ind.end());
  ind.erase(ind.begin() + k * m, ind.end());
  sort(ind.begin(), ind.end());
  long long s = 0;
  for (auto i : ind) s += a[i];
  cout << s << '\n';
  for (int i = 0; i + m < k * m; i += m) cout << ind[i + m - 1] + 1 << ' ';
  return 0;
}
