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>
const int MAXN = 100010;
const long double eps = 1e-8;
bool le(long double a, long double b) { return a + eps < b; }
bool ge(long double a, long double b) { return a - eps > b; }
bool leq(long double a, long double b) { return a - eps <= b; }
bool geq(long double a, long double b) { return a + eps >= b; }
bool eq(long double a, long double b) { return a <= b + eps && b <= a + eps; }
struct vec {
  long double x, y;
  vec() { x = y = 0; }
  vec(long double a, long double b) { x = a, y = b; }
  long double operator^(vec b) const { return x * b.y - y * b.x; }
  long double operator*(vec b) const { return x * b.x + y * b.y; }
  long double norm() const { return sqrt(x * x + y * y); }
  vec operator-(vec b) const { return vec(x - b.x, y - b.y); }
  vec operator+(vec b) const { return vec(x + b.x, y + b.y); }
  vec operator*(long double k) const { return vec(x * k, y * k); }
  vec resize(long double l) { return *this * (l / norm()); }
  bool operator<(const vec& b) const { return x == b.x ? y < b.y : x < b.x; }
  friend std::istream& operator>>(std::istream& in, vec& x) {
    in >> x.x >> x.y;
    return in;
  }
  friend std::ostream& operator<<(std::ostream& out, vec x) {
    out << '(' << x.x << ',' << x.y << ')';
    return out;
  }
} ps[MAXN];
inline long double cross(vec a, vec b, vec c) { return (b - a) ^ (c - a); }
struct line {
  vec x, y;
  long double norm() { return (y - x).norm(); }
  line resize(long double l) { return (line){x, x + (y - x).resize(l)}; }
  friend std::ostream& operator<<(std::ostream& out, line x) {
    out << x.x << '-' << x.y;
    return out;
  }
} ls[MAXN];
std::vector<line> sg[MAXN];
int n, m;
void expand(long double& A, long double& B, long double& C, long double x,
            long double y) {
  A += x * x, C += y * y, B += x * y * 2;
}
void solver(long double& x1, long double& x2, long double A, long double B,
            long double C) {
  if (eq(A, 0)) {
    if (eq(B, 0)) {
      if (leq(C, 0))
        x1 = -1e9, x2 = 1e9;
      else
        x1 = 1e9, x2 = -1e9;
    } else {
      if (ge(B, 0))
        x1 = -1e9, x2 = -C / B;
      else
        x1 = -C / B, x2 = 1e9;
    }
    return;
  }
  long double dta = B * B - 4 * A * C;
  if (dta <= 0) return (void)(x1 = 1e9, x2 = -1e9);
  dta = std::sqrt(dta);
  x1 = (-B - dta) / 2 / A, x2 = (-B + dta) / 2 / A;
}
bool solve(long double lim) {
  std::vector<std::pair<long double, int> > V;
  for (int i = 1; i <= m; ++i) {
    const std::vector<line>&lhs = sg[i], &rhs = sg[i == m ? 1 : i + 1];
    const int LS = lhs.size(), RS = rhs.size();
    int lcur = 0, rcur = 0;
    line ln = lhs[0], rn = rhs[0], lq, rq;
    vec dl, dr;
    long double pre = 0;
    while (true) {
      long double dta = std::min(ln.norm(), rn.norm());
      lq = ln.resize(dta), rq = rn.resize(dta);
      dl = (ln.y - ln.x).resize(1);
      dr = (rn.y - rn.x).resize(1);
      ln.x = lq.y, rn.x = rq.y;
      long double A = 0, B = 0, C = 0, x1, x2;
      expand(A, B, C, dl.x - dr.x, lq.x.x - rq.x.x);
      expand(A, B, C, dl.y - dr.y, lq.x.y - rq.x.y);
      solver(x1, x2, A, B, C -= lim * lim);
      x1 = std::max(x1, 0.l), x2 = std::min(x2, dta);
      if (le(x1, x2)) {
        V.emplace_back(x1 + pre, 1);
        V.emplace_back(x2 + pre, -1);
      }
      pre += dta;
      if (eq(ln.norm(), 0)) {
        if (lcur + 1 == LS && rcur + 1 == RS) break;
        ln = lhs[++lcur];
      }
      if (eq(rn.norm(), 0)) rn = rhs[++rcur];
    }
  }
  std::sort(V.begin(), V.end());
  int now = 0;
  for (auto t : V)
    if ((now += t.second) == m) return true;
  return false;
}
int main() {
  std::ios_base::sync_with_stdio(false), std::cin.tie(0);
  std::cin >> n >> m;
  for (int i = 1; i <= n; ++i) std::cin >> ps[i];
  long double C = 0;
  for (int i = 1; i <= n; ++i)
    C += (ls[i] = (line){ps[i], ps[i == n ? 1 : i + 1]}).norm();
  C /= m;
  int cur = 1;
  line vn = ls[1];
  for (int i = 1; i <= m; ++i) {
    long double now = 0;
    while (le(now, C)) {
      assert(cur <= n);
      long double dta = std::min(vn.norm(), C - now);
      line tar = vn.resize(dta);
      sg[i].push_back(tar);
      vn.x = tar.y;
      now += dta;
      if (eq(vn.norm(), 0)) vn = ls[++cur];
    }
  }
  long double l = 0, r = 3000;
  while (std::abs(r - l) > 1e-7) {
    long double mid = (l + r) / 2;
    if (solve(mid))
      r = mid;
    else
      l = mid;
  }
  std::cout << std::fixed << std::setprecision(10) << l << std::endl;
  return 0;
}