#include <bits/stdc++.h>
using namespace std;
const int maxn = 1003, inf = 2050000000;
int x[maxn], y[maxn], path[maxn], n, K, dist[maxn][maxn];
int Link[maxn], pre[maxn * maxn], t[maxn * maxn];
int get() {
  int f = 0, v = 0;
  char ch;
  while (!isdigit(ch = getchar()))
    if (ch == '-') break;
  if (ch == '-')
    f = 1;
  else
    v = ch - 48;
  while (isdigit(ch = getchar())) v = v * 10 + ch - 48;
  if (f == 1)
    return -v;
  else
    return v;
}
bool dfs(int x, int k) {
  if (x == n + 1) return 1;
  if (path[x] != 0) return dfs(x + 1, k);
  int cnt = 0;
  for (int i = Link[x]; i > 0; i = pre[i])
    if (path[t[i]] == 0) cnt++, path[t[i]] = x;
  if (k >= cnt && dfs(x + 1, k - cnt)) return 1;
  for (int i = Link[x]; i > 0; i = pre[i])
    if (path[t[i]] == x) path[t[i]] = 0;
  if (cnt <= 1) return 0;
  path[x] = x;
  if (k > 0 && dfs(x + 1, k - 1)) return 1;
  path[x] = 0;
  return 0;
}
bool check(int dis) {
  memset(Link, 0, sizeof(Link));
  memset(path, 0, sizeof(path));
  for (int i = 1, tot = 0; i <= n; i++)
    for (int j = i + 1; j <= n; j++)
      if (dist[i][j] > dis) pre[++tot] = Link[i], Link[i] = tot, t[tot] = j;
  return dfs(1, K);
}
int main() {
  n = get(), K = get();
  for (int i = 1; i <= n; i++) x[i] = get(), y[i] = get();
  for (int i = 1; i <= n; i++)
    for (int j = i + 1; j <= n; j++)
      dist[i][j] = dist[j][i] =
          (x[i] - x[j]) * (x[i] - x[j]) + (y[i] - y[j]) * (y[i] - y[j]);
  int l = 0, r = inf;
  while (l < r) {
    int mid = (l + r) / 2;
    if (check(mid))
      r = mid;
    else
      l = mid + 1;
  }
  check(l);
  for (int i = 1; i <= n; i++)
    if (path[i] > 0) printf("%d ", i), K--;
  for (int i = 1; K > 0 && i <= n; i++)
    if (path[i] == 0) printf("%d ", i), K--;
  return 0;
}
