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;
template <class T, class U>
void ckmin(T &a, U b) {
  if (a > b) a = b;
}
template <class T, class U>
void ckmax(T &a, U b) {
  if (a < b) a = b;
}
long double EPS = 1e-10, PI = 3.141592653589793;
int N, M, K, P;
pair<long double, long double> coor[100013];
pair<long double, long double> range[100013];
vector<pair<int, int> > cur, tmp;
int jump[20][3 * 100013];
long double dist(pair<long double, long double> a,
                 pair<long double, long double> b) {
  long double dx = a.first - b.first, dy = a.second - b.second;
  return sqrt(dx * dx + dy * dy);
}
bool cmp(pair<int, int> a, pair<int, int> b) {
  if (a.first != b.first) return a.first > b.first;
  return a.second < b.second;
}
int need() {
  for (pair<int, int> &p : cur) {
    if (p.first > p.second) p.second += P;
  }
  int res = 1000000007, small = 1000000007;
  for (pair<int, int> p : cur) {
    ckmin(small, p.second);
  }
  for (pair<int, int> p : cur) {
    if (p.second >= small + P) continue;
    tmp.push_back(p);
  }
  cur = tmp;
  tmp.clear();
  sort((cur).begin(), (cur).end(), cmp);
  small = 1000000007;
  for (pair<int, int> p : cur) {
    if (p.second < small) {
      tmp.push_back(p);
      small = p.second;
    }
  }
  cur = tmp;
  tmp.clear();
  sort((cur).begin(), (cur).end());
  K = ((int)((cur).size()));
  cur.resize(3 * K + 1);
  for (auto i = (0); i < (K); i++) {
    cur[i + K] = {cur[i].first + P, cur[i].second + P};
    cur[i + 2 * K] = {cur[i].first + 2 * P, cur[i].second + 2 * P};
  }
  cur[3 * K] = {4 * P, 4 * P};
  for (auto i = (0); i < (3 * K); i++) {
    jump[0][i] = upper_bound((cur).begin(), (cur).end(),
                             make_pair(cur[i].second, 1000000007)) -
                 cur.begin();
  }
  jump[0][3 * K] = 3 * K;
  for (auto i = (1); i < (20); i++) {
    for (auto j = (0); j < (3 * K + 1); j++) {
      jump[i][j] = jump[i - 1][jump[i - 1][j]];
    }
  }
  for (auto i = (0); i < (K); i++) {
    int need = 1, idx = i;
    for (auto j = (20) - 1; j >= (0); j--) {
      int to = jump[j][idx];
      if (cur[to].second < cur[i].second + P - 1) {
        idx = jump[j][idx];
        need += (1 << j);
      }
    }
    ckmin(res, need);
  }
  return res;
}
bool check(long double r) {
  for (auto i = (0); i < (N); i++) {
    long double x = coor[i].first, y = coor[i].second;
    long double d = dist({x, y}, {0, 0});
    pair<long double, long double> n = {x * r / d, y * r / d};
    long double mid = atan2(n.second, n.first);
    long double angle = acos(r / d);
    range[i] = {mid - angle, mid + angle};
    while (range[i].first < 0) range[i].first += 2 * PI;
    while (range[i].first >= 2 * PI) range[i].first -= 2 * PI;
    while (range[i].second < 0) range[i].second += 2 * PI;
    while (range[i].second >= 2 * PI) range[i].second -= 2 * PI;
  }
  vector<long double> compress;
  for (auto i = (0); i < (N); i++) {
    compress.push_back(range[i].first);
    compress.push_back(range[i].second);
  }
  P = ((int)((compress).size()));
  sort((compress).begin(), (compress).end());
  cur.clear();
  for (auto i = (0); i < (N); i++) {
    pair<int, int> p;
    p.first =
        lower_bound((compress).begin(), (compress).end(), range[i].first) -
        compress.begin();
    p.second =
        lower_bound((compress).begin(), (compress).end(), range[i].second) -
        compress.begin();
    cur.push_back(p);
  }
  int x = need();
  return (x <= M);
}
int32_t main() {
  cout << fixed << setprecision(10);
  cerr << fixed << setprecision(10);
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> N >> M;
  ckmin(M, N);
  for (auto i = (0); i < (N); i++) {
    long long x, y;
    cin >> x >> y;
    if (x == 0 && y == 0) {
      cout << "0\n";
      return 0;
    }
    coor[i] = {x, y};
  }
  long double lo = 0, hi = 1e18;
  for (auto i = (0); i < (N); i++) {
    ckmin(hi, dist({0, 0}, coor[i]));
  }
  hi -= EPS;
  for (auto i = (0); i < (50); i++) {
    long double mid = (lo + hi) * 0.5;
    if (check(mid))
      lo = mid;
    else
      hi = mid;
  }
  cout << lo << '\n';
  return 0;
}