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 std::cerr;
using std::cin;
using std::max;
using std::min;
int n, m, Cn, flag;
double D, Sumd[200005];
struct point {
  double x, y;
  friend point operator+(point t1, point t2) {
    return {t1.x + t2.x, t1.y + t2.y};
  }
  friend point operator-(point t1, point t2) {
    return {t1.x - t2.x, t1.y - t2.y};
  }
  friend point operator*(point t1, double t2) { return {t1.x * t2, t1.y * t2}; }
} A[200005], B[200005];
struct info {
  double l, r;
} C[200005 << 1];
double F(double x) { return x * x; }
double Dist(point p1, point p2) {
  return sqrt(F(p1.x - p2.x) + F(p1.y - p2.y));
}
void insert(double l, double r) {
  if (r - l < 1e-7) return;
  if (r - l > D) return void(flag = 1);
  int x = floor(l / D), y = floor(r / D);
  l -= x * D, r -= y * D;
  if (x ^ y)
    C[++Cn] = {0, r}, C[++Cn] = {l, D};
  else
    C[++Cn] = {l, r};
}
bool Judge(double mid) {
  double t = 0, Lim1, Lim2, Min, a, b, c, kx, ky, bx, by, delta, x1, x2;
  int i = 1, j;
  point now1 = A[1], now2;
  flag = Cn = 0;
  for (j = 1; Sumd[j + 1] < D + 1e-7; j++)
    ;
  now2 = A[j] + B[j] * (D - Sumd[j]);
  for (; i <= n; t = Min) {
    Lim1 = Sumd[i + 1], Lim2 = Sumd[j + 1] - D, Min = min(Lim1, Lim2);
    kx = B[i].x - B[j].x, ky = B[i].y - B[j].y, bx = now1.x - now2.x,
    by = now1.y - now2.y;
    a = F(kx) + F(ky), b = 2 * kx * bx + 2 * ky * by,
    c = F(bx) + F(by) - F(mid);
    if (a > 1e-7) {
      delta = F(b) - 4 * a * c;
      if (delta > 0) {
        delta = sqrt(delta), x1 = (-b - delta) * .5 / a,
        x2 = (-b + delta) * .5 / a;
        insert(t, min(Min, t + x1)), insert(max(t, t + x2), Min);
      } else
        insert(t, Min);
    } else {
      if (fabs(b) > 1e-7) {
        x1 = -c / b;
        if (b > 1e-7)
          insert(max(t, t + x1), Min);
        else
          insert(t, min(Min, t + x1));
      } else if (c > 1e-7)
        insert(t, Min);
    }
    if (Lim1 < Min + 1e-7)
      now1 = A[++i];
    else
      now1 = now1 + B[i] * (Min - t);
    if (Lim2 < Min + 1e-7)
      now2 = A[++j];
    else
      now2 = now2 + B[j] * (Min - t);
    if (flag) return 0;
  }
  std::sort(C + 1, C + 1 + Cn, [](info t1, info t2) { return t1.l < t2.l; }),
      t = 0;
  for (int i = 1; i <= Cn; i++) {
    if (C[i].l - t > 1e-7) return 1;
    t = max(t, C[i].r);
  }
  if (D - t > 1e-7) return 1;
  return 0;
}
int main() {
  scanf("%d%d", &n, &m);
  for (int i = 1; i <= n; i++) scanf("%lf%lf", &A[i].x, &A[i].y);
  for (int i = 1; i <= n; i++) {
    A[i + n] = A[i],
          B[i] = B[i + n] = (A[i + 1] - A[i]) * (1. / Dist(A[i], A[i + 1]));
    Sumd[i + 1] = Sumd[i] + Dist(A[i], A[i + 1]);
  }
  for (int i = 2; i <= n; i++) Sumd[i + n] = Sumd[i] + Sumd[n + 1];
  D = Sumd[n + 1] / m;
  double l = 0, r = D, mid;
  for (; r - l > 1e-7;) mid = (l + r) * .5, Judge(mid) ? r = mid : l = mid;
  printf("%lf\n", l);
  return 0;
}