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>
template <typename T>
inline void check_min(T a, T &b) {
  if (a < b) b = a;
}
template <typename T>
inline void check_max(T a, T &b) {
  if (a > b) b = a;
}
namespace nymak {
const double eps = 1e-13;
const int N = 401010, INF = 1000000007;
const int mv[9][2] = {0, 0,  -1, 0,  0, -1, 1,  0, 0,
                      1, -1, -1, -1, 1, 1,  -1, 1, 1};
inline double abs(double first) { return first < 0 ? -first : first; }
inline bool fcmp(double a, double b) { return abs(a - b) < eps; }
struct vector {
  double first, second;
  vector(double a = 0, double b = 0) : first(a), second(b) {}
};
struct func {
  vector A;
  int vx, vy;
  double L, R;
  void output() {
    printf("%.2lf %.2lf :: %d %d   ---> [%.2lf,%.2lf]\n", A.first, A.second, vx,
           vy, L, R);
  }
  func(vector a = (0, 0), int bx = 0, int by = 0, double c = 0, double d = 0)
      : A(a), vx(bx), vy(by), L(c), R(d) {}
  vector calc(double lim) {
    double a = vx * vx + vy * vy, b = 2 * (vx * A.first + vy * A.second),
           c = A.first * A.first + A.second * A.second - lim * lim;
    vector ret;
    if (fcmp(a, 0)) {
      if (fcmp(b, 0)) {
        if (c < 0)
          ret = vector(-INF, INF);
        else
          ret = vector(INF, -INF);
      } else {
        if (b > 0)
          ret = vector(-INF, -c / b);
        else
          ret = vector(-c / b, INF);
      }
    } else {
      double delta = b * b - 4 * a * c, sd = std::sqrt(delta);
      if (delta < 0)
        ret = vector(INF, -INF);
      else
        ret = vector((-b - sd) / 2 / a, (-b + sd) / 2 / a);
    }
    ret.first += L, ret.second += L;
    check_min(R, ret.second);
    check_max(L, ret.first);
    return ret;
  }
};
vector operator-(vector A, vector B) {
  return vector(A.first - B.first, A.second - B.second);
}
int n, m, tot;
int drc[N];
vector s[N];
func t[N];
double mod;
inline double ddis(int i) {
  return abs(s[i].first - s[i + 1].first) + abs(s[i].second - s[i + 1].second);
}
inline vector calc(int p, double d) {
  d = ddis(p) - d;
  return vector(s[p].first + mv[drc[p]][0] * d,
                s[p].second + mv[drc[p]][1] * d);
}
inline int getsec(double first) {
  int p = (int)std::floor(first / mod);
  return p;
}
void initialize() {
  scanf("%d%d", &n, &m);
  double tlen = 0;
  for (int i = 1; i <= n; i++)
    scanf("%lf%lf", &s[i].first, &s[i].second), s[n + i] = s[i];
  for (int i = 1; i <= n; i++) {
    tlen += ddis(i);
    if (s[i].first < s[i + 1].first)
      drc[i] = 3;
    else if (s[i].first > s[i + 1].first)
      drc[i] = 1;
    else if (s[i].second < s[i + 1].second)
      drc[i] = 4;
    else
      drc[i] = 2;
    drc[i + n] = drc[i];
  }
  mod = (tlen /= m);
  int ip = 1, iq = 1;
  double dp = ddis(1), dq = ddis(1);
  while (!fcmp(tlen, 0)) {
    double tmp = std::min(dq, tlen);
    dq -= tmp, tlen -= tmp;
    if (fcmp(dq, 0)) dq = ddis(++iq);
  }
  tot = 0;
  double time = 0;
  while (ip <= n) {
    double tmp = std::min(dp, dq);
    int vx = -mv[drc[ip]][0] + mv[drc[iq]][0],
        vy = -mv[drc[ip]][1] + mv[drc[iq]][1];
    t[++tot] = func(calc(iq, dq) - calc(ip, dp), vx, vy, time, time + tmp);
    time += tmp, dp -= tmp, dq -= tmp;
    if (fcmp(dp, 0)) dp = ddis(++ip);
    if (fcmp(dq, 0)) dq = ddis(++iq);
  }
}
inline bool cmp(std::pair<double, int> A, std::pair<double, int> B) {
  return fcmp(A.first, B.first) ? A.second < B.second : A.first < B.first;
}
bool check(double mid) {
  static std::pair<double, int> seg[N * 4];
  int precnt = 0, seg_tot = 0;
  for (int i = 1; i <= tot; i++) {
    vector tmp = t[i].calc(mid);
    if (tmp.first > tmp.second) continue;
    while (tmp.second - tmp.first > mod) tmp.second -= mod, precnt++;
    int ix = getsec(tmp.first), iy = getsec(tmp.second);
    if (ix == iy) {
      seg[++seg_tot] = std::pair<double, int>(tmp.first - ix * mod, 1);
      seg[++seg_tot] = std::pair<double, int>(tmp.second - ix * mod - eps, -1);
    } else {
      seg[++seg_tot] = std::pair<double, int>(0, 1);
      seg[++seg_tot] = std::pair<double, int>(tmp.second - iy * mod - eps, -1);
      seg[++seg_tot] = std::pair<double, int>(tmp.first - ix * mod, 1);
      seg[++seg_tot] = std::pair<double, int>(mod - eps, -1);
    }
  }
  std::sort(seg + 1, seg + seg_tot + 1, cmp);
  for (int i = 1; i <= seg_tot; i++) {
    precnt += seg[i].second;
    if (precnt == m) return 1;
  }
  return 0;
}
void solve() {
  initialize();
  double u = 4000, d = 0, mid;
  while (u - d > 1e-7) {
    mid = (u + d) / 2;
    if (check(mid))
      u = mid;
    else
      d = mid;
  }
  printf("%.9lf\n", d);
}
}  // namespace nymak
int main() {
  nymak::solve();
  return 0;
}