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 int N = 100005, M = 2000006;
const double eps = 1e-8, inf = 1e9;
struct Vec {
  double x, y;
  Vec(double x = 0, double y = 0) : x(x), y(y) {}
  Vec operator+(const Vec &t) const { return Vec(x + t.x, y + t.y); }
  Vec operator-(const Vec &t) const { return Vec(x - t.x, y - t.y); }
  Vec operator*(double t) const { return Vec(x * t, y * t); }
  double dis() { return sqrt(x * x + y * y); }
};
int n, m;
Vec p[N];
double C;
pair<double, double> seg[M];
int tot, cnt[M];
double val[M];
bool __;
void addseg(pair<double, double> t) {
  if (__ && fabs(t.first - seg[tot].second) < eps)
    seg[tot].second = t.second;
  else
    seg[++tot] = t;
  __ = true;
}
int max_cover() {
  for (int i = 1; i <= tot; ++i) {
    val[i * 2 - 1] = seg[i].first;
    val[i * 2] = seg[i].second;
  }
  sort(val + 1, val + 1 + 2 * tot);
  int t = unique(val + 1, val + 1 + 2 * tot) - val - 1, ans = 0;
  memset(cnt + 1, 0, t * sizeof(int));
  for (int i = 1; i <= tot; ++i) {
    int l = lower_bound(val + 1, val + 1 + t, seg[i].first) - val,
        r = lower_bound(val + 1, val + 1 + t, seg[i].second) - val;
    ++cnt[l], --cnt[r + 1];
  }
  for (int i = 1; i <= t; ++i) ans = max(ans, cnt[i] += cnt[i - 1]);
  return ans;
}
struct Func {
  double a, b, c;
  Func(double a = 0, double b = 0, double c = 0) : a(a), b(b), c(c) {}
  double val(double x) { return a * x * x + b * x + c; }
  void root(double &x1, double &x2) {
    x1 = x2 = inf;
    if (fabs(a) > eps) {
      double delta = b * b - 4 * a * c;
      if (delta < 0) return;
      delta = sqrt(delta);
      x1 = (-b - delta) / (2 * a), x2 = (-b + delta) / (2 * a);
      if (x1 > x2) swap(x1, x2);
    } else if (fabs(b) > eps)
      x1 = -c / b;
    else {
    }
  }
  void below(double line, double l, double r) {
    double x1, x2;
    Func(a, b, c - line).root(x1, x2);
    if (fabs(a) > eps) {
      if (a > 0) {
        if (fabs(x1 - inf) < eps)
          ;
        else {
          l = max(l, x1), r = min(r, x2);
          if (l <= r) addseg(make_pair(l, r));
        }
      } else {
        if (fabs(x1 - inf) < eps)
          seg[++tot] = make_pair(l, r);
        else {
          if (x1 >= l) addseg(make_pair(l, x1));
          if (x2 <= r) addseg(make_pair(x2, r));
        }
      }
    } else if (fabs(b) > eps) {
      if (b > 0) {
        if (l <= x1) addseg(make_pair(l, x1));
      } else {
        if (x1 <= r) addseg(make_pair(x1, r));
      }
    } else {
      if (c <= line) addseg(make_pair(l, r));
    }
  }
};
int nxt(int i) { return i == n - 1 ? 0 : i + 1; }
struct Bird {
  Vec cur;
  int las;
  void set(int id) { las = id, cur = p[id]; }
  Vec way() {
    Vec vec = p[nxt(las)] - cur;
    return vec * (1 / vec.dis());
  }
  double rest() { return (p[nxt(las)] - cur).dis(); }
  void go(double _time) { cur = cur + way() * _time; }
  void fly(double _time) {
    while (1) {
      double res = rest();
      if (res <= _time)
        _time -= res, set(nxt(las));
      else {
        go(_time);
        break;
      }
    }
    if (rest() < eps) set(nxt(las));
  }
} bird[N];
void init() {
  cin >> n >> m;
  for (int i = 0; i < n; ++i) cin >> p[i].x >> p[i].y;
  for (int i = 0; i < n; ++i) C += (p[i] - p[nxt(i)]).dis();
  bird[0].set(0);
  for (int i = 1; i < m; ++i) bird[i] = bird[i - 1], bird[i].fly(C / m);
}
Func get_dis(Bird a, Bird b, double cur_t) {
  Func ans;
  Vec vec_a = a.way(), vec_b = b.way();
  double K, B;
  K = vec_a.x - vec_b.x,
  B = (-cur_t * vec_a.x + a.cur.x) - (-cur_t * vec_b.x + b.cur.x);
  ans.a += K * K, ans.b += 2 * K * B, ans.c += B * B;
  K = vec_a.y - vec_b.y,
  B = (-cur_t * vec_a.y + a.cur.y) - (-cur_t * vec_b.y + b.cur.y);
  ans.a += K * K, ans.b += 2 * K * B, ans.c += B * B;
  return ans;
}
void chase(Bird a, Bird b, double line, double _time = C / m) {
  double cur_t = 0;
  while (_time - cur_t > eps) {
    double tmp = min(a.rest(), b.rest());
    tmp = min(tmp, _time - cur_t);
    get_dis(a, b, cur_t).below(line * line, cur_t, cur_t + tmp);
    a.fly(tmp), b.fly(tmp);
    cur_t += tmp;
  }
}
bool check(double line) {
  tot = 0;
  for (int i = 0; i < m; ++i)
    __ = false, chase(bird[i], bird[(i + 1) % m], line);
  return max_cover() >= m;
}
int main() {
  init();
  double l = 0, r = C / m, mid;
  while (r - l > eps) {
    mid = (l + r) / 2;
    if (check(mid))
      r = mid;
    else
      l = mid;
  }
  cout << fixed << setprecision(8) << (l + r) / 2 << endl;
  return 0;
}