#include <bits/stdc++.h>
using namespace std;
bool sortbysec(const pair<int, int> &a, const pair<int, int> &b) {
  return (a.second < b.second);
}
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  int a[n];
  vector<pair<int, int>> vect, vectt;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    vect.push_back(make_pair(a[i], i));
  }
  sort(vect.begin(), vect.end());
  long long int x = k * m, sum = 0;
  for (int i = n - 1; i >= n - x; i--) {
    vectt.push_back(vect[i]);
    sum += vect[i].first;
  }
  sort(vectt.begin(), vectt.end(), sortbysec);
  for (int i = 0; i < vectt.size(); i++) {
  }
  cout << sum << endl;
  for (int i = m - 1; i < vectt.size() - 1; i += m) {
    cout << vectt[i].second + 1 << " ";
  }
  cout << endl;
  return 0;
}
