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 N = 100005;
const double eps = 1e-10;
struct P {
  double x, y;
  P() {}
  P(double _x, double _y) {
    x = _x;
    y = _y;
  }
  P operator+(const P &a) const { return P(x + a.x, y + a.y); }
  P operator-(const P &a) const { return P(x - a.x, y - a.y); }
  P operator*(const double &a) const { return P(a * x, a * y); }
  bool operator<(const P &a) const { return x == a.x ? y < a.y : x < a.x; }
  void init() { scanf("%lf%lf", &x, &y); }
};
double sqr(double x) { return x * x; }
double dis(P x, P y) { return sqrt(sqr(x.x - y.x) + sqr(x.y - y.y)); }
struct Func {
  double a, b, c;
  P calc(double z) {
    if (fabs(a) < eps) return z <= c ? P(1e18, -1e18) : P(-1e18, 1e18);
    double C = c - z;
    double delta = b * b - 4 * a * C;
    if (delta + eps < 0) return P(-1e18, -1e18);
    delta = sqrt(delta + eps);
    return P((-b - delta) / 2 / a, (-b + delta) / 2 / a);
  }
};
struct node {
  Func f;
  double l, r;
};
P p[N];
int n, m;
double C;
vector<node> vec;
vector<P> spe[N];
void build() {
  for (int i = (int)(1); i <= (int)(n); i++) C += dis(p[i], p[i % n + 1]);
  int at = 2;
  P now = p[1];
  for (int i = (int)(1); i <= (int)(m); i++) {
    spe[i].push_back(now);
    double rem = C / m;
    for (; fabs(rem) > eps;) {
      double D = dis(now, p[at]);
      if (fabs(D) < eps)
        at = at % n + 1;
      else if (D <= rem) {
        rem -= D;
        spe[i].push_back(p[at]);
        now = p[at];
        at = at % n + 1;
      } else {
        now = now + (p[at] - now) * (rem / D);
        spe[i].push_back(now);
        break;
      }
    }
  }
}
void buildF(vector<P> a, vector<P> b) {
  int sza = a.size(), szb = b.size();
  int nxa = 1, nxb = 1;
  P pa = a[0], pb = b[0];
  double T = 0;
  for (; nxa < sza || nxb < szb;) {
    double da = dis(pa, a[nxa]);
    double db = dis(pb, b[nxb]);
    double val = min(da, db);
    P Da = (a[nxa] - pa) * (1 / da);
    P Db = (b[nxb] - pb) * (1 / db);
    P del1 = pa - pb;
    P del2 = Da - Db;
    Func f;
    f.a = sqr(del2.x) + sqr(del2.y);
    f.b = 2 * del2.x * del1.x + 2 * del2.y * del1.y;
    f.c = sqr(del1.x) + sqr(del1.y);
    vec.push_back((node){f, T, T + val});
    T += val;
    pa = pa + Da * val;
    pb = pb + Db * val;
    if (fabs(val - da) < eps) nxa++;
    if (fabs(val - db) < eps) nxb++;
  }
}
bool check(double mid) {
  static P q[N * 10];
  int top = 0;
  for (int i = (int)(0); i <= (int)(vec.size() - 1); i++) {
    P range = vec[i].f.calc(mid);
    if (range.x < -1e17) {
      if (range.y < -1e17) q[++top] = (P){vec[i].l, vec[i].r};
    } else {
      double len = vec[i].r - vec[i].l;
      if (range.x > 0) q[++top] = (P){vec[i].l, vec[i].l + min(range.x, len)};
      if (range.y < len) q[++top] = (P){vec[i].l + max(0.0, range.y), vec[i].r};
    }
  }
  sort(q + 1, q + top + 1);
  double r = 0;
  for (int i = (int)(1); i <= (int)(top); i++)
    if (q[i].x > r + eps)
      return 0;
    else
      r = max(r, q[i].y);
  return r + eps > C / m;
}
int main() {
  scanf("%d%d", &n, &m);
  for (int i = (int)(1); i <= (int)(n); i++) p[i].init();
  build();
  for (int i = (int)(1); i <= (int)(m); i++) buildF(spe[i], spe[i % m + 1]);
  double l = 0, r = 3000;
  for (int T = (int)(1); T <= (int)(100); T++) {
    double mid = (l + r) / 2;
    if (!check(mid * mid))
      r = mid;
    else
      l = mid;
  }
  printf("%.10lf\n", (r + l) / 2);
  check(400);
}