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;
struct point {
  double x, y;
  point() : x(0), y(0) {}
  point(long double _x, long double _y) : x(_x), y(_y) {}
  point operator+(const point &p) const { return point(x + p.x, y + p.y); }
  point operator-(const point &p) const { return point(x - p.x, y - p.y); }
  long double operator*(const point &p) const { return x * p.y - y * p.x; }
  int type() const { return x < 0 || (x == 0 && y < 0); }
  bool operator<(const point &a) const {
    if (type() != a.type()) {
      return type() < a.type();
    }
    return (a * *this) > 0;
  }
  long double len() { return sqrt(x * x + y * y); }
};
pair<point, point> block(point a, long double d) {
  long double s = sqrt(a.len() * a.len() - d * d);
  double angle = atan2(s, d);
  pair<point, point> res;
  for (int rot = 0; rot < 2; rot++) {
    double u = sin(angle), v = cos(angle);
    long double _x = a.x * v + a.y * u;
    long double _y = a.y * v - a.x * u;
    (rot ? res.second : res.first) = point(_x, _y);
    angle = -angle;
  }
  if (res.first * res.second > 0) swap(res.first, res.second);
  return res;
}
const int MAX = 20;
int n, m;
int main() {
  scanf("%d%d", &n, &m);
  vector<point> p(n);
  long double min_r = DBL_MAX;
  for (int i = 0; i < n; i++) {
    scanf("%lf%lf", &p[i].x, &p[i].y);
    min_r = min(min_r, p[i].len());
  }
  auto inside = [&](pair<point, point> a, point b) {
    assert(a.first * a.second < 0);
    return (a.first * b < 0 && b * a.second < 0);
  };
  auto solve = [&](double dis) {
    vector<pair<point, point>> cur;
    for (int i = 0; i < n; i++) cur.push_back(block(p[i], dis));
    set<pair<point, point>> _cur;
    for (auto i : cur) {
      if (_cur.empty()) {
        _cur.insert(i);
        continue;
      }
      auto it = _cur.lower_bound(i);
      if (it == _cur.end()) it = _cur.begin();
      if (inside(i, it->first) && inside(i, it->second)) continue;
      while (true) {
        if (it == _cur.begin())
          it = prev(_cur.end());
        else
          it--;
        if (inside(*it, i.first) && inside(*it, i.second)) {
          it = _cur.erase(it);
          if (_cur.empty()) break;
        } else
          break;
      }
      _cur.insert(i);
    }
    cur.clear();
    for (auto i : _cur) cur.push_back(i);
    int sz = cur.size();
    vector<point> ais;
    for (auto i : cur) ais.push_back(i.first);
    vector<vector<int>> to(sz, vector<int>(MAX));
    for (int i = 0; i < sz; i++) {
      int pos =
          upper_bound(ais.begin(), ais.end(), cur[i].second) - ais.begin();
      if (pos <= i) pos += sz;
      to[i][0] = pos;
    }
    for (int i = 1; i < MAX; i++) {
      for (int j = 0; j < sz; j++) {
        int id = to[j][i - 1] % sz;
        to[j][i] = to[id][i - 1];
        if (to[id][i - 1] < sz && to[j][i - 1] >= sz) to[j][i] += sz;
      }
    }
    int res = 0;
    int v = 0;
    while (v < sz) {
      res++;
      v = to[v][0];
    }
    for (int i = 0; i < sz; i++) {
      if (to[i][0] < sz) continue;
      int v = to[i][0] - sz;
      int add = 1;
      for (int j = MAX - 1; j > -1; j--) {
        if (to[v][j] < i) {
          v = to[v][j];
          add += 1 << j;
        }
      }
      if (v < i) {
        assert(to[v][0] >= i);
        add++;
      }
      res = min(res, add);
    }
    return res <= m;
  };
  if (abs(min_r < 1e-7)) {
    printf("0");
    return 0;
  }
  double lo = 0, hi = min_r;
  int iter = 40;
  while (iter--) {
    long double mid = (hi + lo) / 2;
    if (solve(mid))
      lo = mid;
    else
      hi = mid;
  }
  printf("%f\n", hi);
  return 0;
}