Problem: After a drawn-out mooclear arms race, Farmer John and the Mischievous Mess Makers have finally agreed to establish peace. They plan to divide the territory of Bovinia with a line passing through at least two of the n outposts scattered throughout the land. These outposts, remnants of the conflict, are located at the points (x1, y1), (x2, y2), ..., (xn, yn).

In order to find the optimal dividing line, Farmer John and Elsie have plotted a map of Bovinia on the coordinate plane. Farmer John's farm and the Mischievous Mess Makers' base are located at the points P = (a, 0) and Q = ( - a, 0), respectively. Because they seek a lasting peace, Farmer John and Elsie would like to minimize the maximum difference between the distances from any point on the line to P and Q.

Formally, define the difference of a line <image> relative to two points P and Q as the smallest real number d so that for all points X on line <image>, |PX - QX| ≤ d. (It is guaranteed that d exists and is unique.) They wish to find the line <image> passing through two distinct outposts (xi, yi) and (xj, yj) such that the difference of <image> relative to P and Q is minimized.

Input

The first line of the input contains two integers n and a (2 ≤ n ≤ 100 000, 1 ≤ a ≤ 10 000) — the number of outposts and the coordinates of the farm and the base, respectively.

The following n lines describe the locations of the outposts as pairs of integers (xi, yi) (|xi|, |yi| ≤ 10 000). These points are distinct from each other as well as from P and Q.

Output

Print a single real number—the difference of the optimal dividing line. Your answer will be considered correct if its absolute or relative error does not exceed 10 - 6. 

Namely: let's assume that your answer is a, and the answer of the jury is b. The checker program will consider your answer correct, if <image>.

Examples

Input

2 5
1 0
2 1


Output

7.2111025509


Input

3 6
0 1
2 5
0 -3


Output

0.0000000000

Note

In the first sample case, the only possible line <image> is y = x - 1. It can be shown that the point X which maximizes |PX - QX| is (13, 12), with <image>, which is <image>.

In the second sample case, if we pick the points (0, 1) and (0, - 3), we get <image> as x = 0. Because PX = QX on this line, the minimum possible difference is 0.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
const double Max = 2e9;
const double eps = 1e-6;
int n, T;
double a, x[N], y[N], k, b, xx, yy, jx, ans, kx, ky;
inline double dis(double X1, double Y1, double X2, double Y2) {
  return sqrt((X2 - X1) * (X2 - X1) + (Y2 - Y1) * (Y2 - Y1));
}
struct node {
  double x, y;
  node(double xk = 0.0, double yk = 0.0) {
    x = xk;
    y = yk;
  }
  bool operator<(const node& e) const {
    return fabs(dis(-a, 0, x, y) - dis(a, 0, x, y)) <
           fabs(dis(-a, 0, e.x, e.y) - dis(a, 0, e.x, e.y));
  }
} s[N];
namespace Subtask1 {
inline void Solve() {
  ans = Max;
  for (register int i = 1; i <= n; i++)
    for (register int j = i + 1; j <= n; j++) {
      if (y[i] == y[j])
        continue;
      else if (x[i] == x[j]) {
        ans = min(ans, fabs(fabs(a - x[i]) - fabs(-a - x[i])));
        continue;
      }
      k = (y[j] - y[i]) / (x[j] - x[i]);
      b = y[i] - k * x[i];
      jx = -b / k;
      if (jx < -a || jx > a) {
        ans = min(ans, 2.0 * a);
        continue;
      }
      xx = ((1 - k * k) * a - 2 * k * b) / (k * k + 1);
      yy = k * a + k * xx + 2 * b;
      ans = min(ans, dis(-a, 0, xx, yy));
    }
  printf("%.10lf\n", ans);
}
}  // namespace Subtask1
namespace Subtask2 {
inline void Solve() {
  ans = 2.0 * a;
  for (register int i = 1; i <= n; i++) s[i] = node(x[i], y[i]);
  sort(s + 1, s + n + 1);
  T = min(50000000 / n, n);
  for (register int now = 1; now <= T; now++) {
    kx = s[now].x;
    ky = s[now].y;
    for (register int i = now + 1; i <= n; i++) {
      if (ky == s[i].y)
        continue;
      else if (kx == s[i].x) {
        ans = min(ans, fabs(fabs(a - kx) - fabs(-a - kx)));
        continue;
      }
      k = (ky - s[i].y) / (kx - s[i].x);
      b = ky - k * kx;
      jx = -b / k;
      if (jx < -a || jx > a) continue;
      xx = ((1 - k * k) * a - 2 * k * b) / (k * k + 1);
      yy = k * a + k * xx + 2 * b;
      ans = min(ans, dis(-a, 0, xx, yy));
    }
  }
  printf("%.10lf\n", ans);
}
}  // namespace Subtask2
int main() {
  scanf("%d%lf", &n, &a);
  for (register int i = 1; i <= n; i++) scanf("%lf%lf", &x[i], &y[i]);
  if (n <= 5000)
    Subtask1::Solve();
  else
    Subtask2::Solve();
  return 0;
}