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 double eps = 1e-10;
const double Eps = 1e-5;
const int N = 100100;
struct point {
  double x, y;
  point(double x = 0, double y = 0) : x(x), y(y) {}
  point operator*(const double& a) const { return point(a * x, a * y); }
  point operator/(const double& a) const { return point(x / a, y / a); }
  point operator+(const point& a) const { return point(x + a.x, y + a.y); }
  point operator-(const point& a) const { return point(x - a.x, y - a.y); }
  void operator+=(const point& a) { *this = *this + a; }
  double operator*(const point& a) const { return x * a.x + y * a.y; }
  double norm2() { return (*this) * (*this); }
  double norm() { return sqrt(norm2()); }
} a[N], b[N];
struct fun {
  double l, r, a, b, c;
  fun(double l = 0, double r = 0, double a = 0, double b = 0, double c = 0)
      : l(l), r(r), a(a), b(b), c(c) {}
};
vector<fun> vec;
vector<pair<double, int> > VP;
bool cmp(const pair<double, int>& x, const pair<double, int>& y) {
  if (fabs(x.first - y.first) < eps) return x.second < y.second;
  return x.first < y.first;
}
int n, m;
bool chk(double lim) {
  VP.clear();
  for (auto i : vec) {
    if (fabs(i.a) < eps) {
      if (fabs(i.b) < eps) {
        if (i.c < lim + eps) VP.emplace_back(i.l, 1), VP.emplace_back(i.r, -1);
      } else {
        double x = -(i.c - lim) / i.b;
        if (i.b > 0 && x > 0)
          VP.emplace_back(i.l, 1), VP.emplace_back(min(i.l + x, i.r), -1);
        else if (i.b < 0 && i.l + x < i.r)
          VP.emplace_back(max(i.l + x, 0.), 1), VP.emplace_back(i.r, -1);
      }
    } else {
      double z = i.b * i.b - 4 * i.a * (i.c - lim);
      if (z < 0) continue;
      z = sqrt(z);
      double x = (-i.b - z) / 2 / i.a, y = (-i.b + z) / 2 / i.a;
      if (i.l + x > i.r || y < 0) continue;
      VP.emplace_back(i.l + max(0., x), 1);
      VP.emplace_back(min(i.l + y, i.r), -1);
    }
  }
  sort(VP.begin(), VP.end(), cmp);
  int sum = 0;
  for (auto i : VP) {
    sum += i.second;
    if (sum == m) return 1;
  }
  return 0;
}
double L[N], sum, S;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> m;
  for (int i = 1; i <= n; ++i) cin >> a[i].x >> a[i].y;
  a[n + 1] = a[1];
  for (int i = 1; i <= n; ++i) {
    L[i] = (a[i] - a[i + 1]).norm();
    b[i] = (a[i + 1] - a[i]) / L[i];
    sum += L[i];
  }
  double tmp = S = sum / m;
  int fi = 1, la = 1;
  for (la = 1; L[la] < tmp + eps; ++la) tmp -= L[la];
  point Le = a[1], Ri = a[la] + b[la] * tmp;
  double tmq = L[1], ls = 0;
  tmp = L[la] - tmp;
  for (int i = 1; ls + Eps < sum;) {
    double t = min(S * i - ls, min(tmp, tmq));
    point u = Ri - Le, v = b[la] - b[fi];
    vec.emplace_back(ls - (i - 1) * S, ls - (i - 1) * S + t, v.norm2(),
                     2 * (u * v), u.norm2());
    ls += t;
    if (ls >= i * S - Eps) ++i;
    Le += b[fi] * t;
    Ri += b[la] * t;
    if (t >= tmq - eps)
      fi = fi % n + 1, tmq = L[fi];
    else
      tmq -= t;
    if (t >= tmp - eps)
      la = la % n + 1, tmp = L[la];
    else
      tmp -= t;
  }
  double l = 0, r = S;
  while (r - l > eps) {
    double mid = l + (r - l) / 2;
    if (chk(mid * mid))
      r = mid;
    else
      l = mid;
  }
  cout << fixed << setprecision(8) << (l + r) / 2 << '\n';
  return 0;
}