#include <bits/stdc++.h>
using namespace std;
const int MAX = 1090;
int d[MAX * MAX], dnt;
int dist[MAX][MAX];
struct node {
  int x, y;
};
node ns[MAX];
int n, k;
vector<int> G[MAX];
int vist[MAX];
void build(int limit) {
  for (int i = 1; i <= n; i++) G[i].clear(), vist[i] = 0;
  for (int i = 1; i <= n; i++) {
    for (int j = i + 1; j <= n; j++) {
      if (dist[i][j] > limit) {
        G[i].push_back(j), G[j].push_back(i);
      }
    }
  }
}
bool check(int bh, int num) {
  if (bh > n) return 1;
  if (vist[bh]) return check(bh + 1, num);
  if (G[bh].size() > k) {
    vist[bh]++;
    if (num + 1 <= k && check(bh + 1, num + 1)) return 1;
    vist[bh]--;
    return 0;
  } else {
    for (int i = 0; i < (int)G[bh].size(); i++) {
      int u = G[bh][i];
      num += !vist[u];
      vist[u]++;
    }
    if (num <= k && check(bh + 1, num)) return 1;
    int tmp = num;
    for (int i = 0; i < (int)G[bh].size(); i++) {
      int u = G[bh][i];
      vist[u]--;
      num -= !vist[u];
    }
    if (G[bh].size() > 1) {
      vist[bh]++;
      if (num + 1 <= k && num + 1 < tmp && check(bh + 1, num + 1)) return 1;
      vist[bh]--;
    }
    return 0;
  }
}
int main() {
  scanf("%d%d", &n, &k);
  for (int i = 1; i <= n; i++) {
    scanf("%d%d", &ns[i].x, &ns[i].y);
  }
  for (int i = 1; i <= n; i++) {
    for (int j = i + 1; j <= n; j++) {
      d[dnt++] = dist[i][j] = (ns[i].x - ns[j].x) * (ns[i].x - ns[j].x) +
                              (ns[i].y - ns[j].y) * (ns[i].y - ns[j].y);
    }
  }
  sort(d, d + dnt);
  int num = unique(d, d + dnt) - d;
  int l = 0, r = num - 1;
  while (l < r) {
    int mid = (l + r) / 2;
    build(d[mid]);
    bool ok = check(1, 0);
    if (ok)
      r = mid;
    else
      l = mid + 1;
  }
  build(d[l]);
  check(1, 0);
  for (int i = n; i >= 1; i--) {
    if (vist[i]) {
      printf("%d ", i);
      k--;
    }
  }
  for (int i = n; i >= 1 && k > 0; i--) {
    if (!vist[i]) {
      printf("%d ", i);
      k--;
    }
  }
  printf("\n");
  return 0;
}
