#include <bits/stdc++.h>
using namespace std;
struct multidebug {
  template <typename T>
  multidebug& operator,(const T& v) {
    cerr << v << " ";
    return *this;
  }
} mdbg;
template <class T>
ostream& operator<<(ostream& o, const vector<T>& v) {
  if (v.size() == 0) return o << "{}";
  o << "{";
  for (typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
    o << *it << " ";
  return o << "\b}";
}
template <class T>
ostream& operator<<(ostream& o, const set<T>& v) {
  if (v.size() == 0) return o << "{}";
  o << "{";
  for (typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
    o << *it << " ";
  return o << "\b}";
}
template <class A, class B>
ostream& operator<<(ostream& o, const map<A, B>& v) {
  if (v.size() == 0) return o << "{}";
  o << "{";
  for (typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
    o << *it << " ";
  return o << "\b}";
}
template <class A, class B>
ostream& operator<<(ostream& o, const pair<A, B>& p) {
  o << "(" << p.first << "," << p.second << ")";
  return o;
}
template <class T>
void debugarr(T* v, int n) {
  cerr << "{";
  for (int i = 0; i < n; i++) cerr << v[i] << " ";
  cerr << "\b}" << endl;
}
long long a[300005];
int inds[300005];
bool func(int i, int j) { return a[i] < a[j]; }
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  int k;
  cin >> k;
  long long c = 0;
  long long sub = 0;
  int i;
  for (int i = 0; i < n; i++) a[i] += 100000008;
  for (int i = 0; i < n; i++) inds[i] = i;
  sort(inds, inds + n, func);
  sort(a, a + n);
  for (i = 0; i < k; i++) {
    c += i * a[i] - (k - i - 1) * a[i];
    sub += 2 * a[i];
  }
  long long ans = c;
  int ind = i - 1;
  for (; i < n; i++) {
    c += (k - 1) * a[i];
    c += (k - 1) * a[i - k];
    sub -= 2 * a[i - k];
    c -= sub;
    sub += 2 * a[i];
    if (c < ans) {
      ans = c;
      ind = i;
    }
  }
  for (int i = 0; i < k; i++) printf("%d ", inds[ind - i] + 1);
}
