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 maxn = 3e5 + 10;
const double eps = 1e-11;
inline double sqr(double x) { return x * x; }
inline int O(double x) { return x < -eps ? -1 : (x > eps ? 1 : 0); }
struct pt {
  double x, y;
  pt() {}
  pt(double x, double y) : x(x), y(y) {}
  pt operator+(const pt &s) const { return pt(x + s.x, y + s.y); }
  void operator+=(const pt &s) { (*this) = (*this) + s; }
  pt operator-(const pt &s) const { return pt(x - s.x, y - s.y); }
  pt operator*(const double &s) const { return pt(x * s, y * s); }
  pt operator/(const double &s) const { return pt(x / s, y / s); }
  bool operator==(const pt &s) const { return !O(x - s.x) && !O(y - s.y); }
  double l() { return sqrt(sqr(x) + sqr(y)); }
  char *dbg() {
    static char str[100];
    sprintf(str, "(%.2lf,%.2lf)", x, y);
    return str;
  }
};
int n, m;
double len, dlen;
pt p[maxn], s[maxn], v[maxn];
void input() {
  int i;
  scanf("%d%d", &n, &m);
  if (m == 1) puts("0.0000000000"), exit(0);
  for (i = 0; i < n; i++) scanf("%lf%lf", &p[i].x, &p[i].y);
  for (i = 0; i < n * 2; i++) {
    p[n + i] = p[i];
    s[i] = p[i + 1] - p[i];
    len += s[i].l();
    v[i] = s[i] / s[i].l();
  }
  len /= 2;
  dlen = len / m;
}
pair<double, double> calc(pt a, pt b, pt va, pt vb, double R) {
  double A, B, C;
  C = sqr(a.x - b.x) + sqr(a.y - b.y) - sqr(R);
  B = ((va.x - vb.x) * (a.x - b.x) + (va.y - vb.y) * (a.y - b.y)) * 2;
  A = sqr(va.x - vb.x) + sqr(va.y - vb.y);
  if (!A) {
    if (B < 0)
      return pair<double, double>(-C / B, 1e10);
    else if (B > 0)
      return pair<double, double>(-1e10, -C / B);
    else
      return (C < 0 ? pair<double, double>(-1e10, 1e10)
                    : pair<double, double>(1e10, -1e10));
  }
  double delta = sqr(B) - 4 * A * C;
  if (delta < 0) return pair<double, double>(1e10, -1e10);
  delta = sqrt(delta);
  return pair<double, double>((-B - delta) / 2 / A, (-B + delta) / 2 / A);
}
struct Tree {
  int a[maxn];
  void clear() { memset(a, 0, sizeof(a)); }
  void add(int x) {
    for (x += 2; x < maxn; x += x & -x) a[x]++;
  }
  void mis(int x) {
    for (x += 2; x < maxn; x += x & -x) a[x]--;
  }
  int sum(int x) {
    int ans = 0;
    for (x += 2; x; x -= x & -x) ans += a[x];
    return ans;
  }
} Tre;
pt Move_T(double tlen) {
  int j;
  for (j = 0; 1; j++, j %= n)
    if (s[j].l() < tlen)
      tlen -= s[j].l();
    else
      break;
  return p[j] + v[j] * tlen;
}
bool check(double R) {
  int i, j;
  pt cx, cy;
  double tlen = len / m, tm = m, T;
  for (i = j = 0; j < n; j++)
    if (s[j].l() < tlen)
      tlen -= s[j].l();
    else
      break;
  cy = p[j] + v[j] * tlen;
  cx = p[0];
  T = 0;
  vector<pair<double, double> > V, V2;
  V.clear();
  V2.clear();
  while (i < n) {
    double dT = min((p[i + 1] - cx).l(), (p[j + 1] - cy).l());
    pair<double, double> t = calc(cx, cy, v[i], v[j], R);
    t.first = T + max(0.0, t.first);
    t.second = T + min(dT, t.second);
    if (t.second >= t.first) V.push_back(t);
    cx += v[i] * dT;
    cy += v[j] * dT;
    if (cx == p[i + 1]) i++;
    if (cy == p[j + 1]) j++;
    T += dT;
  }
  map<double, int> mp;
  mp.clear();
  map<double, int>::iterator it;
  if (!V.size()) return false;
  V2.push_back(V[0]);
  for (i = 1; i < (int)V.size(); i++)
    if (!O(V[i].first - V[i - 1].second))
      V2[V2.size() - 1].second = V[i].second;
    else
      V2.push_back(V[i]);
  V.swap(V2);
  for (i = 0; i < (int)V.size(); i++)
    tm -= (int)(V[i].second / dlen) - (int)(V[i].first / dlen);
  for (i = 0; i < (int)V.size(); i++)
    mp[V[i].first = (V[i].first -
                     (int)(V[i].first / dlen) *
                         dlen)] = 0,
                         mp[V[i].second = (V[i].second -
                                           (int)(V[i].second / dlen) * dlen)] =
                             0;
  for (j = 0, it = mp.begin(); it != mp.end(); it++) it->second = j++;
  for (i = 0; i < (int)V.size(); i++)
    V[i].first = mp[V[i].first], V[i].second = mp[V[i].second];
  Tre.clear();
  for (i = 0; i < (int)V.size(); i++) {
    Tre.add(V[i].first + 0.5);
    Tre.mis(V[i].second + 1.5);
  }
  for (i = 0; i < j; i++)
    if (Tre.sum(i) >= tm) return true;
  return false;
}
void solve() {
  double L = 0, R = 1e5, mid;
  while (O(R - L)) {
    mid = (R + L) / 2;
    if (check(mid))
      R = mid;
    else
      L = mid;
  }
  printf("%.9lf\n", R);
}
int main() {
  input();
  solve();
  return 0;
}