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-9;
inline int read() {
  char c = getchar();
  int out = 0, d = 1;
  while (!(c >= '0' && c <= '9')) {
    if (c == '-') d = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    out = out * 10 + c - '0';
    c = getchar();
  }
  return out * d;
}
inline int dcmp(double x) { return (x > eps) - (x < -eps); }
class vec {
 public:
  double x, y;
  vec() {}
  vec(double tx, double ty) { x = tx, y = ty; }
  vec operator+(const vec &t) { return vec(x + t.x, y + t.y); }
  vec operator-(const vec &t) { return vec(x - t.x, y - t.y); }
  vec operator*(const double &t) { return vec(x * t, y * t); }
  vec operator/(const double &t) { return vec(x / t, y / t); }
  inline double len() { return sqrt(x * x + y * y); }
  inline vec sing() {
    double d = len();
    return vec(x / d, y / d);
  }
  inline double dir() { return atan2(y, x); }
  bool operator==(const vec &t) const {
    return dcmp(x - t.x) == 0 && dcmp(y - t.y) == 0;
  }
  bool operator!=(const vec &t) const { return !(*this == t); }
  bool operator<(const vec &t) const {
    if (dcmp(t.x - x) == -1) return 1;
    if (dcmp(t.x - x) == 1) return 0;
    return dcmp(t.y - y) == -1;
  }
  inline vec rot(double sn, double cs) {
    return vec(x * cs - y * sn, x * sn + y * cs);
  }
  inline vec rot_by_sin(double sn) {
    double cs = sqrt(1 - sn * sn);
    return vec(x * cs - y * sn, x * sn + y * cs);
  }
  inline vec rot_by_angle(double v) { return rot(sin(v), cos(v)); }
} v[100010], dir[100010];
double len[100010], sum = 0;
class func {
 public:
  double l, r, a, b, c;
};
func f[1600010];
int fcnt = 0, vcnt = 0;
pair<double, int> V[1600010];
inline int cmp(pair<double, int> &a, pair<double, int> &b) {
  return dcmp(a.first - b.first) == 0 ? a.second < b.second : a.first < b.first;
}
int n, m;
bool check(double lim) {
  vcnt = 0;
  int cnt = 0;
  for (int i = 1; i <= fcnt; i++) {
    func &x = f[i];
    double a = x.a, b = x.b, c = x.c - lim;
    double l = x.l, r = x.r;
    if (dcmp(a) == 0) {
      if (dcmp(b) == 0) {
        if (c < eps) {
          V[++vcnt] = (make_pair(l, 1));
          V[++vcnt] = (make_pair(r, -1));
        }
      } else {
        double pos = -c / b;
        if (b > 0 && pos > 0) {
          V[++vcnt] = (make_pair(l, 1));
          V[++vcnt] = (make_pair(min(l + pos, r), -1));
        } else if (b < 0 && l + pos < r) {
          V[++vcnt] = (make_pair(max(l + pos, 0.0), 1));
          V[++vcnt] = (make_pair(r, -1));
        }
      }
    } else {
      double delta = b * b - 4 * a * c;
      if (delta < 0) continue;
      delta = sqrt(delta);
      double ldx = (-b - delta) / (2 * a), cxy = (-b + delta) / (2 * a);
      if (l + ldx > r || cxy < 0) continue;
      V[++vcnt] = (make_pair(l + max(0.0, ldx), 1));
      V[++vcnt] = (make_pair(min(r, l + cxy), -1));
    }
  }
  sort(V + 1, V + vcnt + 1, cmp);
  for (int i = 1; i <= vcnt; i++) {
    pair<double, int> &x = V[i];
    cnt += x.second;
    if (cnt == m) return 1;
  }
  return 0;
}
int main() {
  int pl = 1, pr = 1, id = 1;
  vec tmp1, tmp2;
  double l = 0, r, mid, res, cur = 0, L, R, avg;
  vec st, ed;
  n = read();
  m = read();
  for (int i = 1; i <= n; i++) {
    v[i].x = read();
    v[i].y = read();
  }
  v[n + 1] = v[1];
  for (int i = 1; i <= n; i++) {
    len[i] = (v[i + 1] - v[i]).len();
    dir[i] = (v[i + 1] - v[i]) / len[i];
    sum += len[i];
  }
  avg = R = sum / m;
  for (; len[pr] < R + eps; ++pr) R -= len[pr];
  st = v[1], ed = v[pr] + dir[pr] * R;
  L = len[1];
  R = len[pr] - R;
  fcnt = 0;
  for (; cur + 1e-5 < sum;) {
    res = min(id * avg - cur, min(L, R));
    tmp2 = ed - st, tmp1 = dir[pr] - dir[pl];
    f[++fcnt] = (func){cur - (id - 1) * avg, cur - (id - 1) * avg + res,
                       tmp1.x * tmp1.x + tmp1.y * tmp1.y,
                       2 * (tmp1.x * tmp2.x + tmp1.y * tmp2.y),
                       tmp2.x * tmp2.x + tmp2.y * tmp2.y};
    cur += res;
    if (cur + 1e-5 > id * avg) id++;
    st = st + (dir[pl] * res), ed = ed + (dir[pr] * res);
    if (res + eps > L)
      pl = pl % n + 1, L = len[pl];
    else
      L -= res;
    if (res + eps > R)
      pr = pr % n + 1, R = len[pr];
    else
      R -= res;
  }
  r = avg;
  while (r - l > eps) {
    mid = (l + r) / 2.0;
    if (check(mid * mid))
      r = mid;
    else
      l = mid;
  }
  printf("%.8lf\n", l);
  return 0;
}