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;
using f32 = double;
using pid = pair<int, f32>;
using pdd = pair<f32, f32>;
inline int read(int f = 1, int x = 0, char ch = ' ') {
  while (!isdigit(ch = getchar()))
    if (ch == '-') f = -1;
  while (isdigit(ch)) x = x * 10 + ch - '0', ch = getchar();
  return f * x;
}
const int N = 1e5 + 5;
const f32 eps = 1e-6;
struct Vec {
  f32 x, y;
  Vec(f32 x = 0, f32 y = 0) : x(x), y(y){};
  friend Vec operator+(Vec a, Vec b) { return Vec(a.x + b.x, a.y + b.y); }
  friend Vec operator-(Vec a, Vec b) { return Vec(a.x - b.x, a.y - b.y); }
  friend Vec operator*(Vec v, f32 k) { return Vec(v.x * k, v.y * k); }
  friend Vec operator/(Vec v, f32 k) { return Vec(v.x / k, v.y / k); }
  friend f32 operator*(Vec a, Vec b) { return a.x * b.x + a.y * b.y; }
} p[N];
inline f32 mo(Vec a) { return sqrt(a * a); }
inline Vec un(Vec a) { return a / mo(a); }
int dcmp(f32 x) { return (x > -eps) - (x < eps); }
vector<pdd> solve(f32 a, f32 b, f32 c) {
  vector<pdd> r;
  if (dcmp(a) == 0) {
    if (dcmp(b) == 0 && dcmp(c) <= 0)
      r.emplace_back(-1e9, 1e9);
    else if (dcmp(b) == 1)
      r.emplace_back(-1e9, -c / b);
    else if (dcmp(b) == -1)
      r.emplace_back(-c / b, -1e9);
  } else {
    f32 delta = b * b - 4 * a * c;
    if (dcmp(delta) < 0 && dcmp(a) < 0)
      r.emplace_back(-1e9, 1e9);
    else if (dcmp(delta) >= 0) {
      f32 x1 = (-b - sqrt(delta)) / (2 * a), x2 = (-b + sqrt(delta)) / (2 * a);
      if (x1 > x2) swap(x1, x2);
      if (dcmp(a) > 0)
        r.emplace_back(x1, x2);
      else
        r.emplace_back(-1e9, x1), r.emplace_back(x2, 1e9);
    }
  }
  return r;
}
int n, m;
f32 C;
inline int nxt(int i) { return (i + 1) % n; }
void solve(vector<pdd> &f, f32 l) {
  f.clear();
  f32 t = C / m, d;
  pid a(0, mo(p[1] - p[0])), b;
  for (int i = 0; i < n; ++i) {
    t -= mo(p[nxt(i)] - p[i]);
    if (dcmp(t) <= 0) b.first = i, b.second = -t, i = n - 1;
  }
  for (t = 0; a.first < n; t += d) {
    Vec va = un(p[nxt(a.first)] - p[a.first]),
        vb = un(p[nxt(b.first)] - p[b.first]);
    Vec pa = p[nxt(a.first)] - va * a.second,
        pb = p[nxt(b.first)] - vb * b.second;
    d = min(a.second, b.second);
    a.second -= d, b.second -= d;
    if (dcmp(a.second) == 0)
      ++a.first, a.second = mo(p[nxt(a.first)] - p[a.first]);
    if (dcmp(b.second) == 0)
      b.first = nxt(b.first), b.second = mo(p[nxt(b.first)] - p[b.first]);
    vector<pdd> r = solve((va - vb) * (va - vb), (va - vb) * (pa - pb) * 2,
                          (pa - pb) * (pa - pb) - l * l);
    for (int i = 0; i < r.size(); ++i) {
      f32 u = max(0., r[i].first), v = min(d, r[i].second);
      if (u <= v) f.emplace_back(u + t, v + t);
    }
  }
}
bool valid(f32 mid) {
  vector<pdd> f, g;
  vector<f32> h;
  solve(f, mid);
  for (auto &p : f)
    if (p.first < p.second + 1e-6) p.first += 1e-6;
  vector<pdd>::iterator it = f.begin();
  g.clear(), h.clear();
  for (int i = 1; i <= m; ++i) {
    f32 l = (i - 1.) * C / m, r = i * C / m;
    for (; it != f.end() && it->first <= r;) {
      f32 x = max(l, it->first), y = min(r, it->second);
      g.emplace_back(x - l, y - l), h.push_back(x - l), h.push_back(y - l);
      if (it->second <= r + eps)
        ++it;
      else
        break;
    }
  }
  sort(g.begin(), g.end()), sort(h.begin(), h.end()), it = g.begin();
  priority_queue<f32, vector<f32>, greater<f32>> q;
  for (auto p : h) {
    while (it != g.end() && it->first <= p) q.push(it->second), ++it;
    while (q.size() && q.top() < p) q.pop();
    if (q.size() >= m) return true;
  }
  return false;
}
int main() {
  n = read(), m = read();
  for (int i = 0; i < n; ++i) p[i].x = read(), p[i].y = read();
  for (int i = 0; i < n; ++i) C += mo(p[nxt(i)] - p[i]);
  if (n < m) return printf("%.10lf\n", C / m), 0;
  f32 l = 0, r = C / m + eps;
  for (int T = 50; T; --T) {
    f32 mid = (l + r) / 2;
    if (valid(mid))
      r = mid;
    else
      l = mid;
  }
  if (r < 1e-5)
    puts("0");
  else
    printf("%.10lf\n", r);
  return 0;
}