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>
int read() {
  static int ch, x;
  int f = 1;
  while ((ch = getchar()) < 48) f = ch ^ 45;
  x = ch ^ 48;
  while ((ch = getchar()) >= 48) x = (((x << 2) + x) << 1) + (ch ^ 48);
  return f ? x : -x;
}
constexpr double EPS = 1e-8;
constexpr int sgn(const double &x) { return (x > EPS) - (x < -EPS); }
struct point {
  double x, y;
  constexpr point() : x(), y() {}
  constexpr point(const double &x, const double &y) : x(x), y(y) {}
  constexpr point operator*(const double &v) { return point(x * v, y * v); }
  constexpr point operator/(const double &v) { return point(x / v, y / v); }
  point &operator/=(const double &t) { return *this = *this / t; }
  friend constexpr point operator+(const point &x, const point &y) {
    return point(x.x + y.x, x.y + y.y);
  }
  friend constexpr point operator-(const point &x, const point &y) {
    return point(x.x - y.x, x.y - y.y);
  }
  point &operator+=(const point &t) { return *this = *this + t; }
  constexpr double norm() { return std::sqrt(x * x + y * y); }
  friend constexpr bool operator==(const point &x, const point &y) {
    return !sgn(x.x - y.x) && !sgn(x.y - y.y);
  }
} s[100010], v[100010], p[100010];
struct func {
  double a, b, c, l, r;
  constexpr func() : a(), b(), c(), l(), r() {}
  constexpr func(const double &a, const double &b, const double &c,
                 const double &l, const double &r)
      : a(a), b(b), c(c), l(l), r(r) {}
};
int n, m, tot, topa, topb, top;
int id[100010];
double C, unt;
double len[100010];
double ti[100010 << 1];
std::vector<func> f[100010];
constexpr int fix(const int &x, const int &n) {
  return x - ((n - x) >> 31 & n);
}
void load(const int &a, const int &b) {
  double l = -(p[a] - s[id[a]]).norm(), lft = unt - l;
  ti[++tot] = 0;
  for (int i = id[a]; i != id[b]; i = fix(++i, n)) {
    const double r = l + len[i];
    ti[++tot] = r;
    l = r;
    lft -= len[i];
  }
  ti[++tot] = l + lft;
}
struct interval {
  double l, r;
  constexpr interval() : l(), r() {}
  constexpr interval(const double &l, const double &r) : l(l), r(r) {}
} a[100010 << 1], b[100010 << 1], tmp[100010 << 1];
template <interval *s, int &top>
void add(const int &id, const double &mid) {
  top = 0;
  for (const func &F : f[id]) {
    const double A = F.a, B = F.b, C = F.c - mid * mid;
    double lf = 0., rg = 0.;
    if (!sgn(A)) {
      if (B < 0) {
        rg = std::min(F.r, -C / B);
      } else if (!sgn(B)) {
        if (C > 0) continue;
        rg = F.r;
      } else {
        lf = std::max(0., -C / B);
        rg = F.r;
      }
    } else {
      double delta = B * B - 4 * A * C;
      if (delta < 0) continue;
      delta = std::sqrt(delta);
      lf = (-B - delta) / (2 * A);
      rg = (-B + delta) / (2 * A);
      if (A < 0) std::swap(lf, rg);
      lf = std::max(lf, 0.);
      rg = std::min(rg, F.r);
    }
    lf += F.l;
    rg += F.l;
    if (rg < 0) continue;
    if (top && s[top].r >= lf) {
      s[top].r = rg;
    } else {
      s[++top] = interval(lf, rg);
    }
  }
}
bool chk(const double &mid) {
  add<a, topa>(1, mid);
  if (!topa) return false;
  for (int t = 2; t <= m; ++t) {
    add<b, topb>(t, mid);
    top = 0;
    for (int i = 1, j = 1; i <= topa && j <= topb;) {
      const double l = std::max(a[i].l, b[j].l), r = std::min(a[i].r, b[j].r);
      if (l < r) tmp[++top] = interval(l, r);
      if (a[i].r < b[j].r) {
        ++i;
      } else {
        ++j;
      }
    }
    memcpy(a + 1, tmp + 1, sizeof(interval) * top);
    topa = top;
    if (!topa) return false;
  }
  return true;
}
int main() {
  n = read();
  m = read();
  for (int i = 1; i <= n; ++i) {
    s[i].x = read();
    s[i].y = read();
  }
  s[n + 1] = s[1];
  for (int i = 1; i <= n; ++i) {
    v[i] = s[i + 1] - s[i];
    len[i] = v[i].norm();
    v[i] /= len[i];
    C += len[i];
  }
  unt = C / m;
  p[1] = s[1];
  id[1] = 1;
  double lft = 0.;
  for (int i = 2, j = 1; i <= m; ++i) {
    lft += unt;
    while (len[j] <= lft) lft -= len[j++];
    p[i] = s[j] + v[j] * lft;
    id[i] = j;
  }
  for (int a = 1, b = 2, c = fix(3, m); a <= m;
       ++a, b = fix(++b, m), c = fix(++c, m)) {
    tot = 0;
    load(a, b);
    load(b, c);
    std::sort(ti + 1, ti + tot + 1);
    tot = std::unique(ti + 1, ti + tot + 1) - (ti + 1);
    point A = p[a], B = p[b];
    int ida = id[a], idb = id[b], jda = fix(ida + 1, n), jdb = fix(idb + 1, n);
    for (int i = 1; i < tot; ++i) {
      const double al = A.x - B.x, bt = v[ida].x - v[idb].x;
      const double gm = A.y - B.y, om = v[ida].y - v[idb].y;
      const double d = ti[i + 1] - ti[i];
      f[a].push_back(func(bt * bt + om * om, 2 * (al * bt + gm * om),
                          al * al + gm * gm, ti[i], d));
      A += v[ida] * d;
      B += v[idb] * d;
      if (A == s[jda]) {
        ida = jda;
        jda = fix(ida + 1, n);
      }
      if (B == s[jdb]) {
        idb = jdb;
        jdb = fix(idb + 1, n);
      }
    }
  }
  double l = 0., r = 2829;
  while (l + EPS < r) {
    const double mid = (l + r) * .5;
    if (chk(mid)) {
      r = mid;
    } else {
      l = mid;
    }
  }
  printf("%.8lf\n", l);
  return 0;
}