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>
void splitstr(const string &s, vector<T> &out) {
  istringstream in(s);
  out.clear();
  copy(istream_iterator<T>(in), istream_iterator<T>(), back_inserter(out));
}
template <class T>
T gcd(T a, T b) {
  return b ? gcd(b, a % b) : a;
}
static void redirect(int argc, const char **argv) {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  if (argc > 1) {
    static filebuf f;
    f.open(argv[1], ios::in);
    cin.rdbuf(&f);
    if (!cin) {
      cerr << "Failed to open '" << argv[1] << "'" << endl;
      exit(1);
    }
  }
  if (argc > 2) {
    static filebuf f;
    f.open(argv[2], ios::out | ios::trunc);
    cout.rdbuf(&f);
    if (!cout) {
      cerr << "Failed to open '" << argv[2] << "'" << endl;
    }
  }
}
static inline double dot(const complex<double> &a, const complex<double> &b) {
  return real(conj(a) * b);
}
static inline double cross(const complex<double> &a, const complex<double> &b) {
  return imag(conj(a) * b);
}
static inline double cross(const complex<double> &a, const complex<double> &b,
                           const complex<double> &c) {
  return cross(b - a, c - a);
}
class CompareAngle {
 public:
  bool operator()(const complex<double> &a, const complex<double> &b) const {
    const complex<double> da = a;
    const complex<double> db = b;
    bool fa = da.imag() > 0 || (da.imag() == 0 && da.real() >= 0);
    bool fb = db.imag() > 0 || (db.imag() == 0 && db.real() >= 0);
    if (fa != fb)
      return fa;
    else {
      double c = cross(da, db);
      if (c != 0)
        return c > 0;
      else
        return dot(da, da) < dot(db, db);
    }
  }
};
static vector<int> combine(const vector<int> &a, const vector<int> &b) {
  int N = ((long long)(a).size());
  vector<int> out(N);
  for (int i = 0; i < N; i++) {
    int jmp = a[i];
    int y = (i + jmp) % N;
    out[i] = min(N, jmp + b[y]);
  }
  return out;
}
int main(int argc, const char **argv) {
  redirect(argc, argv);
  cout << fixed << setprecision(9);
  int N, M;
  cin >> N >> M;
  vector<complex<double> > pnts(N);
  for (int i = 0; i < N; i++) {
    int x, y;
    cin >> x >> y;
    pnts[i] = complex<double>(x, y);
  }
  sort(begin(pnts), end(pnts), CompareAngle());
  double hi = HUGE_VAL;
  for (const auto &p : pnts) hi = min(hi, abs(p));
  double lo = 0.0;
  if (hi == 0.0 || N == M) {
    cout << hi << '\n';
    return 0;
  }
  vector<double> args(N), angu(N), angd(N);
  for (int i = 0; i < N; i++) {
    args[i] = arg(pnts[i]);
    if (args[i] < 0.0)
      args[i] += 2 * 3.1415926535897932384626433832795028841971693993751;
  }
  while (hi - lo > 1e-10 * max(1.0, lo)) {
    double dist = (lo + hi) * 0.5;
    vector<int> jump(N);
    int jmp = 0;
    multiset<double> upper, lower;
    for (int i = 0; i < N; i++) {
      double t = acos(min(1.0, dist / abs(pnts[i])));
      angu[i] = args[i] + t;
      angd[i] = args[i] - t;
    }
    for (int i = 0; i < N; i++) {
      jmp--;
      jmp = max(jmp, 0);
      int y = (i + jmp) % N;
      while (jmp < N) {
        if (jmp > 0 &&
            min(angu[y], *upper.begin()) < max(angd[y], *lower.rbegin()))
          break;
        upper.insert(angu[y]);
        lower.insert(angd[y]);
        jmp++;
        if (++y == N) y = 0;
      }
      jump[i] = jmp;
      upper.erase(upper.find(angu[i]));
      lower.erase(lower.find(angd[i]));
      angu[i] += 2 * 3.1415926535897932384626433832795028841971693993751;
      angd[i] += 2 * 3.1415926535897932384626433832795028841971693993751;
    }
    vector<int> p2 = jump;
    vector<int> comb(N);
    for (int i = 1; i <= M; i *= 2) {
      if (M & i) comb = combine(comb, p2);
      p2 = combine(p2, p2);
    }
    if (*max_element(begin(comb), end(comb)) >= N)
      lo = dist;
    else
      hi = dist;
  }
  cout << hi << '\n';
  return 0;
}