#include <bits/stdc++.h>
using namespace std;
struct Stat {
  long long x, id;
};
Stat ar[300005];
bool cmp(Stat a, Stat b) { return a.x < b.x; }
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%I64d", &ar[i].x), ar[i].id = i;
  sort(ar + 1, ar + n + 1, cmp);
  int k;
  scanf("%d", &k);
  long long tmp = 0, who = 1, sum = 0;
  for (int i = 1; i <= k; i++) {
    tmp += ar[i].x * (i - 1) - sum;
    sum += ar[i].x;
  }
  long long mn = tmp;
  for (int i = k + 1; i <= n; i++) {
    sum -= ar[i - k].x;
    tmp = tmp + ar[i - k].x * (k - 1) - sum + ar[i].x * (k - 1) - sum;
    if (tmp < mn) mn = tmp, who = i - k + 1;
    sum += ar[i].x;
  }
  for (int i = 0; i < k; i++)
    printf("%I64d%c", ar[who + i].id, i == k - 1 ? '\n' : ' ');
  return 0;
}
