Problem: Tokitsukaze and her friends are trying to infiltrate a secret base built by Claris. However, Claris has been aware of that and set a bomb which is going to explode in a minute. Although they try to escape, they have no place to go after they find that the door has been locked.

At this very moment, CJB, Father of Tokitsukaze comes. With his magical power given by Ereshkigal, the goddess of the underworld, CJB is able to set m barriers to protect them from the explosion. Formally, let's build a Cartesian coordinate system on the plane and assume the bomb is at O(0, 0). There are n persons in Tokitsukaze's crew, the i-th one of whom is at P_i(X_i, Y_i). Every barrier can be considered as a line with infinity length and they can intersect each other. For every person from Tokitsukaze's crew, there must be at least one barrier separating the bomb and him, which means the line between the bomb and him intersects with at least one barrier. In this definition, if there exists a person standing at the position of the bomb, any line through O(0, 0) will satisfy the requirement.

Although CJB is very powerful, he still wants his barriers to be as far from the bomb as possible, in order to conserve his energy. Please help him calculate the maximum distance between the bomb and the closest barrier while all of Tokitsukaze's crew are safe.

Input

The first line contains two integers n, m (1 ≤ n, m ≤ 10^5), indicating the number of people and the number of barriers respectively.

The i-th line of the next n lines contains two integers X_i, Y_i (-10^5 ≤ X_i, Y_i ≤ 10^5), indicating the i-th person's location P_i(X_i, Y_i). Note that P_i may have the same coordinates as P_j (j ≠ i) or even O.

Output

Print a single real number — the maximum distance meeting the requirement. Your answer is considered correct if its absolute or relative error does not exceed 10^{-6}.

Formally, let your answer be a, and the jury's answer be b. Your answer is accepted if and only if (|a - b|)/(max(1, |b|)) ≤ 10^{-6}.

Examples

Input


3 1
2 0
0 2
-1 0


Output


0.0000000000


Input


1 1
0 0


Output


0.0000000000


Input


2 1
-1 -1
-1 -1


Output


1.4142135617


Input


3 100000
3 2
-1 -3
2 -5


Output


3.1622776602

Note

In the first two examples, CJB must set the barrier crossing O(0, 0).

In the last two examples, CJB can set each barrier crossing some P_i such that the barrier is perpendicular to the line between P_i and O.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
inline void smin(double &a, const double &b) {
  if (b < a) a = b;
}
struct point {
  double first, second;
  inline point() { first = second = 0; }
  inline point(int first, int second) : first(first), second(second) {}
  inline void input() { scanf("%lf %lf", &first, &second); }
  inline double al() { return atan2(second, first); }
  inline double nor() { return sqrt(first * first + second * second); }
};
int n, m, N;
point p[101010];
pair<double, double> pd[202020];
pair<int, int> pp[202020];
const double pi = acos(-1);
double vec[202020];
int nxt[202020][18];
inline pair<double, double> seg(point a, double R) {
  double alpha = a.al();
  if (alpha < -1e-7) alpha += 2 * pi;
  double delta = acos(R / a.nor());
  double mn = alpha - delta;
  if (mn < -1e-7) mn += 2 * pi;
  double mx = alpha + delta;
  if (mx > 2 * pi - 1e-7) mx -= pi * 2;
  vec[N++] = mn, vec[N++] = mx;
  return pair<double, double>(mn, mx);
}
inline bool in(pair<int, int> a, pair<int, int> b) {
  while (b.first < a.first) b.first += N, b.second += N;
  return b.second <= a.second;
}
inline bool can(double R) {
  if (R < 1e-7) return true;
  N = 0;
  for (int i = 1; i <= n; i++) pd[i] = seg(p[i], R);
  sort(vec, vec + N), N = unique(vec, vec + N) - vec;
  for (int i = 1; i <= n; i++) {
    pp[i].first = lower_bound(vec, vec + N, pd[i].first) - vec;
    pp[i].second = lower_bound(vec, vec + N, pd[i].second) - vec;
  }
  sort(pp + 1, pp + n + 1);
  for (int i = 1; i <= n; i++)
    if (pp[i].first > pp[i].second) {
      pp[i].second += N;
    }
  int st = 1, ed = 2;
  for (int i = 2; i <= n; i++) {
    if (in(pp[i], pp[ed - 1])) continue;
    if (in(pp[i], pp[st])) continue;
    while (st < ed && in(pp[st], pp[i])) st++;
    while (st < ed && in(pp[ed - 1], pp[i])) ed--;
    pp[ed++] = pp[i];
  }
  int nn = 0;
  for (int i = st; i < ed; i++) pp[nn++] = pp[i];
  if (N <= m) return true;
  for (int i = 0; i < nn; i++)
    pp[nn + i] = pair<int, int>(pp[i].first + N, pp[i].second + N);
  N = nn;
  for (int i = 0, id = 0; i < N; i++) {
    if (id < i) id = i;
    for (; id < i + N && pp[id].first <= pp[i].second; id++)
      ;
    if (id == i + N) return true;
    nxt[i][0] = id - i;
  }
  for (int j = 1; j < 18; j++) {
    for (int i = 0; i < N; i++) {
      nxt[i][j] = min(N, nxt[i][j - 1] + nxt[(i + nxt[i][j - 1]) % N][j - 1]);
    }
  }
  for (int i = 0; i < N; i++) {
    for (int j = 18, k = i, tot = 0; j--;)
      if (m & (1 << j)) {
        tot += nxt[k][j];
        if (tot >= N) return true;
        k += nxt[k][j];
        if (k >= N) k -= N;
      }
    continue;
    int id = i, j;
    for (int k = m, num = 0; k; k ^= k & -k) {
      j = __builtin_ctz(k);
      num += nxt[id][j];
      if (num >= N) return true;
      id += nxt[id][j];
      if (id >= N) id -= N;
    }
  }
  return false;
}
int main() {
  scanf("%d %d", &n, &m);
  for (int i = 1; i <= n; i++) p[i].input();
  double st = 0, ed = p[1].nor();
  for (int i = 2; i <= n; i++) smin(ed, p[i].nor());
  while ((ed - st) / max(1., ed) > 1e-6) {
    double md = (st + ed) / 2;
    if (can(md))
      st = md;
    else
      ed = md;
  }
  printf("%.8lf\n", st);
}