Problem: A new bus route is opened in the city <image>. The route is a closed polygon line in the place, with all segments parallel to one of the axes. m buses will operate on the route. All buses move in a loop along the route in the same direction with equal constant velocities (stopping times are negligible in this problem).

Buses start their movement in the first vertex of the route with equal interval. Suppose that T is the total time for a single bus to travel the whole loop of the route. Then, the bus 1 starts moving at time 0, the bus 2 starts at time T / m, the bus 3 starts at time 2T / m, and so on; finally, the bus m starts moving at time (m - 1)T / m. Thus, all intervals between pairs of consecutive buses (including the interval between the last and the first bus) are equal.

Buses can communicate with each other via wireless transmitters of equal power. If the transmitters have power D, then only buses within distance D of each other can communicate.

The buses are also equipped with a distributed system of schedule tracking. For all buses to stick to the schedule, the system has to synchronize the necessary data between all buses from time to time. At the moment of synchronization, the bus 1 communicates with the bus 2, the bus 2 — with bus 3, and so on; also, the bus m communicates with the bus 1.

As a research employee, you are tasked with finding the smallest value of D such that it is possible to find a time moment to perform synchronization once all buses have started moving. 

Input

The first line contains two integers n and m (2 ≤ n, m ≤ 105) — the number of vertices of the polygonal line, and the number of buses respectively.

Next n lines describe the vertices of the route in the traversing order. Each of these lines contains two integers xi, yi ( - 1000 ≤ xi, yi ≤ 1000) — coordinates of respective vertex.

It is guaranteed that each leg of the route (including the leg between the last and the first vertex) is paralles to one of the coordinate axes. Moreover, no two subsequent vertices of the route coincide. The route is allowed to have self-intersections, and travel along the same segment multiple times.

Output

Print one real number — the answer to the problem. Your answer will be accepted if the relative or the absolute error doesn't exceed 10 - 6.

Examples

Input

4 2
0 0
0 1
1 1
1 0


Output

1.000000000


Input

2 2
0 0
1 0


Output

0.000000000

Note

Suppose that each bus travel 1 distance unit per second.

In the first sample case, in 0.5 seconds buses will be at distance 1, hence we can choose D = 1.

In the second sample case, in 0.5 seconds both buses will be at (0.5, 0), hence we can choose D = 0.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int maxn = 200010;
const long double eps = 1e-10;
int read() {
  int tot = 0, fh = 1;
  char c = getchar();
  while ((c < '0') || (c > '9')) {
    if (c == '-') fh = -1;
    c = getchar();
  }
  while ((c >= '0') && (c <= '9')) {
    tot = tot * 10 + c - '0';
    c = getchar();
  }
  return tot * fh;
}
struct point {
  long double x, y;
  point(long double xx = 0, long double yy = 0) {
    x = xx;
    y = yy;
  }
} a[maxn];
long double dis(point a, point b) {
  return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
}
long double len(point a) { return sqrt(a.x * a.x + a.y * a.y); }
point operator-(point a, point b) { return point((a.x - b.x), (a.y - b.y)); }
point operator+(point a, point b) { return point((a.x + b.x), (a.y + b.y)); }
point operator/(point a, long double b) { return point((a.x / b), (a.y / b)); }
point operator*(long double a, point b) { return point((a * b.x), (a * b.y)); }
long double dian(point a, point b) { return (a.x * b.x + a.y * b.y); }
int i, j, k;
int n, m, th;
long double ans, l, r, mid, tot, tot1, tot2;
struct node {
  long double l, r;
  int x;
} b[maxn], c[maxn];
struct node2 {
  long double x;
  int w;
} dd[maxn * 10];
void pan(point a, point b, point c, long double r, long double xx,
         long double yy) {
  if (fabs(xx - yy) < eps) return;
  if (dis(a, b) < eps) {
    if (len(a) - r > eps) return;
    while (tot1 + tot - xx < eps) {
      tot1 = tot1 + tot;
      tot2 = tot2 + tot;
    }
    while (tot1 - yy < eps) {
      th++;
      dd[th].x = max(tot1, xx) - tot1;
      dd[th].w = 1;
      th++;
      dd[th].x = min(tot2, yy) - tot1;
      dd[th].w = -1;
      tot1 = tot1 + tot;
      tot2 = tot2 + tot;
    }
    tot1 = tot1 - tot;
    tot2 = tot2 - tot;
    return;
  }
  point d =
      a + (dian(point(0, 0) - a, b - a) / len(b - a)) * ((b - a) / len(b - a));
  if (len(d) - r > eps) return;
  if ((len(a) - r < eps) && (len(b) - r < eps)) {
    while (tot1 + tot - xx < eps) {
      tot1 = tot1 + tot;
      tot2 = tot2 + tot;
    }
    while (tot1 - yy < eps) {
      th++;
      dd[th].x = max(tot1, xx) - tot1;
      dd[th].w = 1;
      th++;
      dd[th].x = min(tot2, yy) - tot1;
      dd[th].w = -1;
      tot1 = tot1 + tot;
      tot2 = tot2 + tot;
    }
    tot1 = tot1 - tot;
    tot2 = tot2 - tot;
    return;
  }
  long double ll = sqrt(r * r - len(d) * len(d));
  point x = d + ll * ((a - d) / len(a - d));
  point y = d + ll * ((b - d) / len(b - d));
  if (dis(x, y) < eps) {
    if ((len(a) - r > eps) && (len(b) - r > eps)) return;
    if (len(a) - r < eps)
      yy = xx + dis(x, a) / len(c);
    else
      xx = xx + dis(x, a) / len(c);
  } else {
    if (dian(c, x - a) > eps) xx = xx + len(x - a) / len(c);
    if (dian(c, y - a) - dian(c, b - a) < eps) yy = yy - len(y - b) / len(c);
  }
  if (yy - xx > eps) {
    while (tot1 + tot - xx < eps) {
      tot1 = tot1 + tot;
      tot2 = tot2 + tot;
    }
    while (tot1 - yy < eps) {
      th++;
      dd[th].x = max(tot1, xx) - tot1;
      dd[th].w = 1;
      th++;
      dd[th].x = min(tot2, yy) - tot1;
      dd[th].w = -1;
      tot1 = tot1 + tot;
      tot2 = tot2 + tot;
    }
    tot1 = tot1 - tot;
    tot2 = tot2 - tot;
  }
}
void work(long double l, long double r, int x, int y, long double thi) {
  if (r - l < eps) return;
  point sx, sy, tx, ty, ds, dt, dd;
  sx = a[x] + (l - b[x].l) * ((a[x + 1] - a[x]) / dis(a[x + 1], a[x]));
  sy = a[y] + (l - c[y].l) * ((a[y + 1] - a[y]) / dis(a[y + 1], a[y]));
  ds = sx - sy;
  tx = a[x] + (r - b[x].l) * ((a[x + 1] - a[x]) / dis(a[x + 1], a[x]));
  ty = a[y] + (r - c[y].l) * ((a[y + 1] - a[y]) / dis(a[y + 1], a[y]));
  dt = tx - ty;
  dd = ((a[x + 1] - a[x]) / dis(a[x + 1], a[x])) -
       ((a[y + 1] - a[y]) / dis(a[y + 1], a[y]));
  pan(ds, dt, dd, thi, l, r);
}
bool cmp(node2 a, node2 b) { return (a.x < b.x); }
int check(long double thi) {
  int i, j, sum;
  b[0].r = -eps;
  for (i = 1; i <= n; i++) {
    b[i].l = b[i - 1].r + eps * 2;
    b[i].r = b[i - 1].r + dis(a[i + 1], a[i]);
    b[i].x = i;
    c[i].l = b[i].l + tot;
    c[i].r = b[i].r + tot;
    c[i].x = i;
  }
  i = 1;
  j = 1;
  th = 0;
  tot1 = eps;
  tot2 = tot - eps;
  while (b[i].r < tot) i++;
  while (i <= n) {
    if (j == (n / 2) + 1) break;
    work(max(b[i].l, c[j].l), min(b[i].r, c[j].r), i, j, thi);
    if (b[i].r - c[j].r < eps)
      i++;
    else
      j++;
  }
  sort(dd + 1, dd + th + 1, cmp);
  sum = 0;
  for (i = 1; i <= th; i++) {
    sum = sum + dd[i].w;
    if (sum >= m) return 1;
  }
  return 0;
}
int main() {
  n = read();
  m = read();
  for (i = 1; i <= n; i++) {
    a[i].x = read();
    a[i].y = read();
  }
  for (i = n + 1; i <= 2 * n; i++) {
    a[i] = a[i - n];
  }
  a[2 * n + 1] = a[1];
  for (i = 1; i <= n; i++) tot = tot + dis(a[i], a[i + 1]);
  tot = tot / m;
  n = n * 2;
  l = 0;
  r = 4000;
  ans = 1e9;
  while (r - l >= 0.0000005) {
    mid = (l + r) / 2.0;
    if (check(mid) == 1) {
      ans = mid;
      r = mid;
    } else
      l = mid;
  }
  printf("%.8Lf\n", ans);
  return 0;
}