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 N = 500054;
const double eps = 3e-10;
inline void up(double &x, const double y) { x < y ? x = y : 0.; }
inline void down(double &x, const double y) { x > y ? x = y : 0.; }
inline double max(const double x, const double y) { return x < y ? y : x; }
struct quadratic {
  double A, B, C;
  quadratic(double A_ = 0., double B_ = 0., double C_ = 0.)
      : A(A_), B(B_), C(C_) {}
  inline double operator()(double x) const { return (A * x + B) * x + C; }
  inline std::pair<double, double> root(double y) const {
    if ((((A) <= (0) + eps) && ((A) >= (0) - eps)))
      return std::pair<double, double>((y - C) / B, NAN);
    double b = -.5 * B / A, d = b * b + (y - C) / A;
    return ((d) < (0) - eps) ? std::pair<double, double>(NAN, NAN)
                             : (d = sqrt(max(d, 0.)),
                                std::pair<double, double>(b - d, b + d));
  }
  inline std::pair<double, double> range(double x_min, double x_max) const {
    assert(x_min <= x_max);
    std::pair<double, double> ret = std::minmax((*this)(x_min), (*this)(x_max));
    double mid = -.5 * B / A;
    if ((((A) <= (0) + eps) && ((A) >= (0) - eps)) || mid < x_min ||
        x_max < mid)
      ;
    else
      mid = (*this)(mid), down(ret.first, mid), up(ret.second, mid);
    return ret;
  }
};
struct vec2 {
  double x, y;
  vec2(double x0 = 0., double y0 = 0.) : x(x0), y(y0) {}
  vec2 *read() {
    scanf("%lf%lf", &x, &y);
    return this;
  }
  inline vec2 operator-() const { return vec2(-x, -y); }
  inline vec2 operator+(const vec2 &B) const { return vec2(x + B.x, y + B.y); }
  inline vec2 operator-(const vec2 &B) const { return vec2(x - B.x, y - B.y); }
  inline vec2 operator*(double k) const { return vec2(x * k, y * k); }
  inline vec2 operator/(double k) const { return *this * (1.0 / k); }
  inline double operator*(const vec2 &B) const { return x * B.x + y * B.y; }
  inline double operator^(const vec2 &B) const { return x * B.y - y * B.x; }
  inline double norm2() const { return x * x + y * y; }
  inline double norm() const { return sqrt(x * x + y * y); }
  inline bool operator<(const vec2 &B) const {
    return ((x) < (B.x) - eps) || ((x) <= (B.x) + eps) && ((y) < (B.y) - eps);
  }
  inline bool operator==(const vec2 &B) const {
    return (((x) <= (B.x) + eps) && ((x) >= (B.x) - eps)) &&
           (((y) <= (B.y) + eps) && ((y) >= (B.y) - eps));
  }
};
int n, m, sr = 0;
vec2 p[N], unit[N];
double C[N], co[N], u;
double st[N];
quadratic f[N];
std::pair<double, double> rg[N];
inline int pred(int x) { return (x ? x : n) - 1; }
inline int succ(int x) { return ++x == n ? 0 : x; }
void append(double len, int i1, double s1, int i2, double s2) {
  if (s1 < 0) s1 += C[n];
  if (s2 < 0) s2 += C[n];
  st[sr + 1] = st[sr] + len;
  vec2 O = (p[i1] + unit[i1] * s1) - (p[i2] + unit[i2] * s2),
       v = unit[i1] - unit[i2];
  f[sr++] = quadratic(v.norm2(), v * O * 2., O.norm2());
}
namespace seg {
int n;
bool danger;
std::pair<double, double> a[N];
inline void reset() { n = 0, danger = false; }
inline void insert(double L, double R) {
  assert(L <= R);
  int Li = L / u, Ri = R / u;
  L -= Li * u, R -= Ri * u;
  if (Li == Ri)
    a[n++] = std::pair<double, double>(L, R);
  else if (Li + 1 == Ri && L > R)
    a[n++] = std::pair<double, double>(L, u),
    a[n++] = std::pair<double, double>(0, R);
  else
    danger = true;
}
bool exist() {
  if (danger) return false;
  int i;
  double k = 0;
  std::sort(a, a + n);
  for (i = 0; i < n; ++i) {
    if (k < a[i].first) return true;
    up(k, a[i].second);
  }
  return ((k) < (u)-eps);
}
}  // namespace seg
inline bool check(double lim) {
  int i;
  double L, R, x1, x2;
  seg::reset();
  for (i = 0; i < sr; ++i) {
    if (L = st[i], R = st[i + 1], (((L) <= (R) + eps) && ((L) >= (R)-eps)))
      continue;
    if (lim <= rg[i].first)
      seg::insert(L, R);
    else if (lim < rg[i].second) {
      std::tie(x1, x2) = f[i].root(lim), x1 += L, x2 += L;
      if (!(L <= x1 && x1 <= R)) std::swap(x1, x2);
      if (L <= x2 && x2 <= R)
        f[i].C >= lim          ? seg::insert(L, x1),
            seg::insert(x2, R) : seg::insert(x1, x2);
      else
        f[i].C >= lim ? seg::insert(L, x1) : seg::insert(x1, R);
    }
  }
  return seg::exist();
}
int main() {
  int i, j;
  double L, R, M;
  scanf("%d%d", &n, &m);
  for (i = 0; i < n; ++i) p[i].read();
  p[n] = *p;
  for (i = 0; i < n; ++i)
    L = (p[i] - p[i + 1]).norm(), C[i + 1] = C[i] + L,
    unit[i] = (p[i + 1] - p[i]) / L;
  u = C[n] / m;
  for (i = 0; i < n; ++i) co[i] = fmod(C[i] + C[n] - u, C[n]);
  j = pred(std::min_element(co, co + n) - co);
  for (i = 0; i < n; ++i) {
    for (L = C[i]; C[i] <= co[succ(j)] && co[succ(j)] < C[i + 1];
         j = succ(j), L = co[j])
      append(co[succ(j)] - L, i, L - C[i], j, L - co[j]);
    append(C[i + 1] - L, i, L - C[i], j, L - co[j]);
  }
  for (i = 0; i < sr; ++i) rg[i] = f[i].range(0, st[i + 1] - st[i]);
  {
    vec2 *_1, *_2;
    std::tie(_1, _2) = std::minmax_element(p, p + n), R = (*_1 - *_2).norm();
  }
  for (L = 0.; L + eps < R;) M = (L + R) * .5, check(M * M) ? R = M : L = M;
  printf("%.10lg\n", (L + R) * .5);
  return 0;
}