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;
inline int dcmp(double a) {
  if (fabs(a) < 1e-7) return 0;
  return a > 0 ? 1 : -1;
}
int n, m, npt;
double len[200005], arrtim[200005];
inline double sqr(double x) { return x * x; }
struct Point {
  double x, y;
  Point(double x = 0, double y = 0) : x(x), y(y) {}
  Point operator+(const Point &B) const { return Point(x + B.x, y + B.y); }
  Point operator-(const Point &B) const { return Point(x - B.x, y - B.y); }
  Point operator*(const double B) const { return Point(x * B, y * B); }
  double Len() { return sqrt(sqr(x) + sqr(y)); }
} st, P[200005], dir[200005];
double dist(Point A, Point B) { return (B - A).Len(); }
double C;
double tl[200005 * 10], tr[200005 * 10];
int ct[200005 * 10], cnt_t;
inline bool cmp(const int &u, const int &v) { return tl[u] < tl[v]; }
inline double diV(double t) { return floor(t / C); }
inline double dmod(double t) { return t - C * floor(t / C); }
bool ERROR = 0;
void Insert(double s, double t) {
  if (dcmp(diV(t) - diV(s)) == 1) {
    if (dcmp(dmod(t) - dmod(s)) == 1 || dcmp(diV(t) - diV(s) - 1) == 1)
      ERROR = 1;
    else {
      tl[++cnt_t] = dmod(s), tr[cnt_t] = C;
      tl[++cnt_t] = 0, tr[cnt_t] = dmod(t);
    }
  } else {
    tl[++cnt_t] = dmod(s), tr[cnt_t] = dmod(t);
  }
}
inline bool check(double mid) {
  double tnow = 0;
  cnt_t = ERROR = 0;
  Point st1 = P[1], st2 = st;
  for (int npt1 = 2, npt2 = npt; npt1 <= n + 1 && npt2 <= npt + n;) {
    double lim1 = arrtim[npt1], lim2 = arrtim[npt2] - C;
    double A1 = st1.x - st2.x, A2 = dir[npt1 - 1].x - dir[npt2 - 1].x;
    double B1 = st1.y - st2.y, B2 = dir[npt1 - 1].y - dir[npt2 - 1].y;
    double A = sqr(A2) + sqr(B2), B = 2 * A1 * A2 + 2 * B1 * B2,
           C = sqr(A1) + sqr(B1) - mid * mid;
    double delta = sqr(B) - 4 * A * C;
    if (dcmp(delta) == -1)
      Insert(tnow, min(lim1, lim2));
    else {
      delta = sqrt(delta);
      if (dcmp(A) != 0) {
        double x1 = (-B - delta) / (2 * A), x2 = (-B + delta) / (2 * A);
        if (x1 > 0) Insert(tnow, min(min(lim1, lim2), tnow + x1));
        if (x2 + tnow < min(lim1, lim2))
          Insert(max(x2 + tnow, tnow), min(lim1, lim2));
      } else if (dcmp(B) == 0) {
        if (C > 0) Insert(tnow, min(lim1, lim2));
      } else if (dcmp(B) == 1) {
        double x = -C / B;
        Insert(max(tnow, tnow + x), min(lim1, lim2));
      } else {
        double x = -C / B;
        Insert(tnow, min(min(lim1, lim2), tnow + x));
      }
    }
    double tnxt = min(lim1, lim2);
    if (dcmp(lim1 - tnxt) != 1)
      st1 = P[npt1], npt1++;
    else
      st1 = st1 + dir[npt1 - 1] * (tnxt - tnow);
    if (dcmp(lim2 - tnxt) != 1)
      st2 = P[npt2], npt2++;
    else
      st2 = st2 + dir[npt2 - 1] * (tnxt - tnow);
    tnow = tnxt;
  }
  if (ERROR) return 0;
  double Max = 1e-7;
  for (int i = 1; i <= cnt_t; i++) ct[i] = i;
  sort(ct + 1, ct + 1 + cnt_t, cmp);
  for (int i = 1; i <= cnt_t; i++) {
    if (dcmp(tl[ct[i]] - Max) == 1) {
      return 1;
    }
    Max = max(Max, tr[ct[i]]);
  }
  if (dcmp(Max - C) == -1) return 1;
  return 0;
}
int main() {
  scanf("%d%d", &n, &m);
  for (int i = 1; i <= n; i++) scanf("%lf%lf", &P[i].x, &P[i].y);
  P[n + 1] = P[1];
  for (int i = 1; i <= n; i++)
    len[i] = dist(P[i], P[i + 1]), C += len[i], arrtim[i + 1] = C,
    dir[i] = (P[i + 1] - P[i]) * (1 / (P[i + 1] - P[i]).Len());
  for (int i = 1; i <= n; i++)
    arrtim[n + i + 1] = C + arrtim[i + 1], dir[i + n] = dir[i], P[i + n] = P[i],
                   len[i + n] = len[i];
  C /= m;
  int id = 1;
  double sel = C;
  for (; dcmp(len[id] - sel) != 1; id++) sel -= len[id];
  id = (id - 1) + 1;
  st = P[id] + dir[id] * sel;
  npt = id + 1;
  double l = 0, r = 10000, mid;
  for (; r - l > 1e-7;) {
    mid = (l + r) * 0.5;
    if (check(mid))
      r = mid;
    else
      l = mid + 1e-7;
  }
  printf("%.7lf", l);
}