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 rlen = 1 << 18 | 1;
inline char gc() {
  static char buf[rlen], *ib, *ob;
  (ib == ob) && (ob = (ib = buf) + fread(buf, 1, rlen, stdin));
  return (ib == ob) ? -1 : *ib++;
}
inline int read() {
  int ans = 0;
  bool f = 1;
  char ch = gc();
  while (!isdigit(ch)) f ^= ch == '-', ch = gc();
  while (isdigit(ch)) ans = ((ans << 2) + ans << 1) + (ch ^ 48), ch = gc();
  return f ? ans : -ans;
}
const int N = 1e5 + 5;
const double eps = 1e-9;
int n, m, num, cnt;
double len[N], sum = 0, A, B, C;
inline double sqr(double x) { return x * x; }
struct pot {
  double x, y;
  pot(double x = 0, double y = 0) : x(x), y(y) {}
  friend inline pot operator+(const pot& a, const pot& b) {
    return pot(a.x + b.x, a.y + b.y);
  }
  friend inline pot operator-(const pot& a, const pot& b) {
    return pot(a.x - b.x, a.y - b.y);
  }
  friend inline pot operator*(const pot& a, const double& b) {
    return pot(a.x * b, a.y * b);
  }
  friend inline pot operator/(const pot& a, const double& b) {
    return pot(a.x / b, a.y / b);
  }
  inline double mod() { return sqr(x) + sqr(y); }
} a[N], dir[N], st, ed;
inline double dist(pot a, pot b) { return sqrt((a - b).mod()); }
struct F {
  double ql, qr, a, b, c;
} f[N << 4];
struct Data {
  double pos;
  int v;
  friend inline bool operator<(const Data& a, const Data& b) {
    return fabs(a.pos - b.pos) < eps ? a.v < b.v : a.pos < b.pos;
  }
} t[N << 4];
inline bool check(double lim) {
  cnt = 0;
  double l, r, z, x, y;
  for (register int i = 1; i <= num; ++i) {
    A = f[i].a, B = f[i].b, C = f[i].c - lim;
    l = f[i].ql, r = f[i].qr;
    if (fabs(A) < eps) {
      if (fabs(B) < eps) {
        if (C < eps) t[++cnt] = (Data){l, 1}, t[++cnt] = (Data){r, -1};
      } else {
        z = -C / B;
        if (B > 0 && z > 0)
          t[++cnt] = (Data){l, 1}, t[++cnt] = (Data){min(l + z, r), -1};
        else if (B < 0 && l + z < r)
          t[++cnt] = (Data){max(l + z, 0.0), 1}, t[++cnt] = (Data){r, -1};
      }
    } else {
      z = B * B - 4 * A * C;
      if (z < 0) continue;
      z = sqrt(z), x = (-B - z) / (2 * A), y = (-B + z) / (2 * A);
      if (l + x > r || y < 0) continue;
      t[++cnt] = (Data){l + max(0.0, x), 1};
      t[++cnt] = (Data){min(r, l + y), -1};
    }
  }
  sort(t + 1, t + cnt + 1);
  for (register int i = 1, j = 0; i <= cnt; ++i) {
    j += t[i].v;
    if (j == m) return 1;
  }
  return 0;
}
int main() {
  int pl = 1, pr = 1, id = 1;
  pot dr, dt, st, ed;
  double l = 0, r, mid, res, cur = 0, L, R, ave;
  n = read(), m = read();
  for (register int i = 1; i <= n; ++i) a[i].x = read(), a[i].y = read();
  a[n + 1] = a[1];
  for (register int i = 1; i <= n; ++i) {
    len[i] = dist(a[i], a[i + 1]);
    dir[i] = (a[i + 1] - a[i]) / len[i];
    sum += len[i];
  }
  ave = R = sum / m;
  for (; len[pr] < R + eps; ++pr) R -= len[pr];
  st = a[1], ed = a[pr] + dir[pr] * R;
  L = len[1], R = len[pr] - R;
  for (; cur + (1e-5) < sum;) {
    res = min(id * ave - cur, min(L, R));
    dt = ed - st, dr = dir[pr] - dir[pl];
    f[++num] = (F){cur - (id - 1) * ave, cur - (id - 1) * ave + res, dr.mod(),
                   2 * (dr.x * dt.x + dr.y * dt.y), dt.mod()};
    cur += res;
    if (cur + (1e-5) > id * ave) id++;
    st = st + (dir[pl] * res), ed = ed + (dir[pr] * res);
    if (res + eps > L)
      pl = pl % n + 1, L = len[pl];
    else
      L -= res;
    if (res + eps > R)
      pr = pr % n + 1, R = len[pr];
    else
      R -= res;
  }
  for (r = ave; r - l > eps;)
    mid = (l + r) / 2.0, check(mid * mid) ? r = mid : l = mid;
  printf("%.8lf", l);
  return 0;
}