#include <bits/stdc++.h>
using namespace std;
const double pi = 3.141592653;
const long long infi = 1000000001;
const string no = "NO\n", yes = "YES\n";
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int t = 1;
  long long n, m, i, length, d, bank, k, j, x, y, ans, q;
  while (t--) {
    ans = 0;
    m = 1e19;
    cin >> n;
    vector<pair<long long, long long> > vp;
    for (i = 0; i < n; i++) {
      cin >> x;
      vp.emplace_back(make_pair(x, i + 1));
    }
    cin >> k;
    sort(vp.begin(), vp.end());
    y = 0;
    ans = 0;
    for (i = 0; i < k; i++) {
      y += vp[i].first;
      ans += abs((i + 1) * vp[i].first - y);
    }
    x = 0;
    m = min(ans, m);
    for (int i = k; i < n; i++) {
      ans -= abs(y - k * vp[i - k].first);
      y -= vp[i - k].first;
      y += vp[i].first;
      ans += abs(k * vp[i].first - y);
      if (ans < m) {
        m = ans;
        x = i - k + 1;
      }
    }
    for (int i = x; i < x + k; i++) {
      cout << vp[i].second << ' ';
    }
  }
  return 0;
}
