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 = 2e5 + 10;
const double eps = 1e-9;
int n, m, k;
double T, t[maxn], g[maxn];
pair<int, int> a[maxn];
struct node {
  double l, r;
  int first, second;
  node(double a = 0, double b = 0, int c = 0, int d = 0) {
    l = a;
    r = b;
    first = c;
    second = d;
  }
} f[maxn];
struct data {
  double k, b;
  data(double first = 0, double second = 0) {
    k = first;
    b = second;
  }
} A[maxn], B[maxn];
map<double, int> Map;
inline double sqr(double first) { return first * first; }
inline double Dis(pair<int, int> a, pair<int, int> b) {
  return sqrt(sqr(a.first - b.first) + sqr(a.second - b.second));
}
inline double Get(double a, double b, double c, double first) {
  return a * first * first + b * first + c;
}
inline data get(pair<double, double> a, pair<double, double> b) {
  double k = (a.second - b.second) / (a.first - b.first);
  return data(k, a.second - k * a.first);
}
inline data operator-(data a, data b) { return data(a.k - b.k, a.b - b.b); }
inline bool Check(double first) {
  Map.clear();
  vector<pair<double, double> > p;
  for (int i = (1), _end_ = (k); i <= _end_; ++i) {
    data l1 = data(A[f[i].first] - A[f[i].second]);
    l1.b -= T * A[f[i].second].k;
    data l2 = data(B[f[i].first] - B[f[i].second]);
    l2.b -= T * B[f[i].second].k;
    double a = l1.k * l1.k + l2.k * l2.k;
    double b = 2 * l1.k * l1.b + 2 * l2.k * l2.b;
    double c = l1.b * l1.b + l2.b * l2.b - first * first;
    double x1, x2;
    if (!a && !b) {
      if (c > 0) continue;
      x1 = f[i].l;
      x2 = f[i].r;
    } else if (!a)
      x1 = x2 = -b / c;
    else {
      double delta = b * b - 4 * a * c;
      if (delta < 0) continue;
      delta = sqrt(delta);
      x1 = (delta - b) / a / 2;
      x2 = (-delta - b) / a / 2;
    }
    if (x1 > x2) swap(x1, x2);
    x1 = max(f[i].l, x1);
    x2 = min(f[i].r, x2);
    if (x1 > x2 + eps) continue;
    if (x2 - x1 >= T - eps) {
      Map[0] += (int)((x2 - x1) / T);
      Map[T + eps] -= (int)((x2 - x1) / T);
      x1 = x1 + (int)((x2 - x1) / T) * T;
    }
    x1 = x1 - (int)(x1 / T) * T;
    x2 = x2 - (int)(x2 / T) * T;
    if (x1 < x2 + eps)
      p.push_back(pair<double, double>(x1, x2));
    else {
      p.push_back(pair<double, double>(x1, T));
      p.push_back(pair<double, double>(0, x2));
    }
  }
  for (auto it : p) {
    ++Map[it.first];
    --Map[it.second + eps];
  }
  int sum = 0;
  for (auto it : Map) {
    sum += it.second;
    if (sum >= m) return true;
  }
  return false;
}
int main() {
  scanf("%d%d", &n, &m);
  for (int i = (1), _end_ = (n); i <= _end_; ++i) {
    scanf("%d%d", &a[i].first, &a[i].second);
    a[n + i] = a[i];
  }
  for (int i = (1), _end_ = (n + n); i <= _end_; ++i) {
    t[i] = Dis(a[i], a[i + 1]);
    g[i] = g[i - 1] + t[i];
    A[i] = get(pair<double, double>(g[i - 1], a[i].first),
               pair<double, double>(g[i], a[i + 1].first));
    B[i] = get(pair<double, double>(g[i - 1], a[i].second),
               pair<double, double>(g[i], a[i + 1].second));
  }
  T = g[n] / m;
  int pos = 1;
  while (g[pos] < T) ++pos;
  double lst = T - g[pos - 1];
  for (int i = (1), _end_ = (n); i <= _end_; ++i) {
    double first = g[i - 1];
    while (g[i] + T > g[pos]) {
      f[++k] = node(first, first + t[pos] - lst - 0.001, i, pos);
      first += t[pos] - lst;
      lst = 0;
      ++pos;
    }
    f[++k] = node(first, g[i] - 0.001, i, pos);
    lst = g[i] + T - g[pos - 1];
  }
  double l = 0, r = T;
  for (int o = (1), _end_ = (65); o <= _end_; ++o) {
    double Mid = (l + r) / 2.0;
    if (Check(Mid))
      r = Mid;
    else
      l = Mid;
  }
  printf("%.10lf\n", (l + r) / 2.0);
  return 0;
}