#include <bits/stdc++.h>
using namespace std;
const int N = 1012;
int n, k, t = 0, tot = 0, ans[N], tim[N], du[N];
int w[N * N];
bool del[N];
struct Point {
  int x, y;
} a[N];
inline int Dist(Point a, Point b) {
  return (a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y);
}
struct Edge {
  int u, v;
  Edge *next;
} e[N * N], *P, *point[N];
inline void Add_Edge(int a, int b) {
  P->u = a;
  P->v = b;
  P->next = point[a];
  point[a] = P++;
  ++du[b];
}
inline void Remove(int now) {
  if (++tim[now] > 1) return;
  del[now] = true;
  ++tot;
  for (Edge *j = point[now]; j; j = j->next)
    if (!del[j->v]) --du[now], --du[j->v];
}
inline void Resume(int now) {
  if (--tim[now] > 0) return;
  del[now] = false;
  --tot;
  for (Edge *j = point[now]; j; j = j->next)
    if (!del[j->v]) ++du[now], ++du[j->v];
}
bool Dfs(int now) {
  if (tot > k) return false;
  if (now > n) {
    int l = 0, r = n + 1;
    for (int i = 1; i <= n; ++i)
      if (del[i])
        ans[++l] = i;
      else
        ans[--r] = i;
    return true;
  }
  if (du[now] == 0) return Dfs(now + 1);
  if (du[now] > 1) {
    Remove(now);
    if (Dfs(now + 1)) return true;
    Resume(now);
  }
  for (Edge *j = point[now]; j; j = j->next) Remove(j->v);
  if (Dfs(now + 1)) return true;
  for (Edge *j = point[now]; j; j = j->next) Resume(j->v);
  return false;
}
bool Check(int key) {
  memset(du, 0, sizeof(du));
  memset(tim, 0, sizeof(tim));
  memset(del, false, sizeof(del));
  P = e;
  memset(point, 0, sizeof(point));
  tot = 0;
  for (int i = 1; i <= n; ++i)
    for (int j = 1; j < i; ++j)
      if (Dist(a[i], a[j]) > key) Add_Edge(i, j), Add_Edge(j, i);
  return Dfs(1);
}
int main() {
  scanf("%d%d", &n, &k);
  for (int i = 1; i <= n; ++i) scanf("%d%d", &a[i].x, &a[i].y);
  for (int i = 1; i <= n; ++i)
    for (int j = 1; j < i; ++j) w[++t] = Dist(a[i], a[j]);
  sort(w + 1, w + t + 1);
  int l = 1, r = t;
  while (l <= r) {
    int mid = (l + r) / 2;
    if (Check(w[mid]))
      r = mid - 1;
    else
      l = mid + 1;
  }
  Check(w[l]);
  for (int i = 1; i <= k; ++i) printf("%d ", ans[i]);
  puts("");
}
