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;
struct Point {
  int x, y;
};
const int MAXN = 100005;
const double eps = 1e-9;
Point pa[MAXN], ba[MAXN];
int d[MAXN], totd;
int n, m;
vector<pair<double, int> > v;
double sqr(double x) { return x * x; }
int Symbol(double a, double b) {
  if (fabs(a - b) < eps)
    return 0;
  else if (a > b)
    return 1;
  else
    return -1;
}
Point Travel(Point p, int dd) {
  while (dd > 0) {
    int rem = d[p.x] * m - p.y;
    if (rem > dd)
      p.y += dd, dd = 0;
    else
      dd -= rem, p.x = (p.x + 1) % n, p.y = 0;
  }
  return p;
}
void SolveQEq(long long d0, int dd, Point p0, Point p1, double tryd,
              int &overcnt) {
  Point rp0, rp1;
  double A, B, C, Ax, Bx, Ay, By;
  double l, r;
  rp0.x = pa[p0.x].x * m + ba[p0.x].x * p0.y;
  rp0.y = pa[p0.x].y * m + ba[p0.x].y * p0.y;
  rp1.x = pa[p1.x].x * m + ba[p1.x].x * p1.y;
  rp1.y = pa[p1.x].y * m + ba[p1.x].y * p1.y;
  Ax = ba[p0.x].x - ba[p1.x].x;
  Bx = rp0.x - rp1.x;
  Ay = ba[p0.x].y - ba[p1.x].y;
  By = rp0.y - rp1.y;
  A = sqr(Ax) + sqr(Ay);
  B = 2 * Ax * Bx + 2 * Ay * By;
  C = sqr(Bx) + sqr(By) - sqr(tryd * m);
  if (Symbol(A, 0) == 0) {
    if (Symbol(C, 0) > 0) return;
    l = 0;
    r = dd;
  } else {
    double delta = sqr(B) - 4 * A * C;
    if (delta >= 0) {
      l = (-B - sqrt(delta)) / (2 * A);
      r = (-B + sqrt(delta)) / (2 * A);
      l = max(l, 0.0);
      r = min(r, (double)dd);
      if (l > r) return;
    } else
      return;
  }
  l += d0;
  r += d0;
  overcnt += (int)(floor(r / totd) - floor(l / totd));
  l = l - floor(l / totd) * totd;
  r = r - floor(r / totd) * totd;
  v.push_back(make_pair(l, 1));
  v.push_back(make_pair(r, -1));
  return;
}
bool Check(double tryd) {
  Point p0, p1;
  long long d0 = 0;
  int overcnt = 0;
  v.clear();
  p0.x = 0;
  p0.y = 0;
  p1 = Travel(p0, totd);
  do {
    int rem0 = d[p0.x] * m - p0.y;
    int rem1 = d[p1.x] * m - p1.y;
    int dd = min(rem0, rem1);
    SolveQEq(d0, dd, p0, p1, tryd, overcnt);
    p0 = Travel(p0, dd);
    p1 = Travel(p1, dd);
    d0 += dd;
  } while (!(p0.x == 0 && p0.y == 0));
  if (overcnt >= m) return true;
  sort(v.begin(), v.end());
  for (auto &p : v) {
    overcnt += p.second;
    if (overcnt >= m) return true;
  }
  return false;
}
int main() {
  double ansl = 0, ansr = 3000;
  scanf("%d%d", &n, &m);
  for (int i = 0; i < n; ++i) scanf("%d%d", &pa[i].x, &pa[i].y);
  pa[n] = pa[0];
  for (int i = 0; i < n; ++i) {
    d[i] = abs(pa[i].x - pa[i + 1].x) + abs(pa[i].y - pa[i + 1].y);
    totd += d[i];
    ba[i].x = Symbol(pa[i + 1].x, pa[i].x);
    ba[i].y = Symbol(pa[i + 1].y, pa[i].y);
  }
  while (ansr - ansl > eps) {
    double mid = (ansl + ansr) / 2;
    if (Check(mid))
      ansr = mid;
    else
      ansl = mid;
  }
  printf("%.9lf\n", ansr);
  return 0;
}