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;
namespace SHENZHEBEI {
inline int read() {
  int x = 0, f = 1;
  char ch = getchar();
  for (; !isdigit(ch); ch = getchar())
    if (ch == '-') f = -1;
  for (; isdigit(ch); ch = getchar()) x = x * 10 - 48 + ch;
  return x * f;
}
inline void write(int x) {
  if (x < 0) putchar('-'), x = -x;
  if (x >= 10) write(x / 10);
  putchar(x % 10 + '0');
}
inline char readchar() {
  char ch = getchar();
  for (; isspace(ch); ch = getchar())
    ;
  return ch;
}
inline int readstr(char *s) {
  char ch = getchar();
  int cur = 0;
  for (; isspace(ch); ch = getchar())
    ;
  for (; !isspace(ch); ch = getchar()) s[cur++] = ch;
  s[cur] = '\0';
  return cur;
}
inline void writeln(int x) {
  write(x);
  puts("");
}
inline double getreal() {
  static double lbc;
  scanf("%lf", &lbc);
  return lbc;
}
}  // namespace SHENZHEBEI
using namespace SHENZHEBEI;
const int N = 200010;
int n, A, sum, p[N];
double ans, x[N], y[N], X[N], Y[N], z[N];
bool cmp(int a, int b) { return z[a] < z[b]; }
int main() {
  srand(time(0));
  n = read(), A = read();
  ans = 2 * A;
  for (int i = 1; i <= n; ++i)
    y[i] = read(), x[i] = read(), sum += y[i] == 0,
    z[i] = ((sqrt(((x[i]) * (x[i])) + ((y[i] - A) * (y[i] - A))) -
             sqrt(((x[i]) * (x[i])) + ((y[i] + A) * (y[i] + A)))) > 0
                ? (sqrt(((x[i]) * (x[i])) + ((y[i] - A) * (y[i] - A))) -
                   sqrt(((x[i]) * (x[i])) + ((y[i] + A) * (y[i] + A))))
                : -(sqrt(((x[i]) * (x[i])) + ((y[i] - A) * (y[i] - A))) -
                    sqrt(((x[i]) * (x[i])) + ((y[i] + A) * (y[i] + A)))));
  if (sum >= 2) return puts("0"), 0;
  for (int i = 1; i <= n; ++i) p[i] = i;
  sort(p + 1, p + n + 1, cmp);
  for (int i = 1; i <= n; ++i) X[i] = x[p[i]], Y[i] = y[p[i]];
  for (int i = 1; i <= n; ++i) x[i] = X[i], y[i] = Y[i];
  for (int i = 1; i <= ((6000) < (n) ? (6000) : (n)); ++i) {
    for (int j = i + 1; j <= ((n / i * 200) < (n) ? (n / i * 200) : (n)); ++j) {
      if (y[i] == y[j]) {
        ((ans) =
             ((ans) > (((((y[i] - A) > 0 ? (y[i] - A) : -(y[i] - A)) -
                         ((y[i] + A) > 0 ? (y[i] + A) : -(y[i] + A))) > 0
                            ? (((y[i] - A) > 0 ? (y[i] - A) : -(y[i] - A)) -
                               ((y[i] + A) > 0 ? (y[i] + A) : -(y[i] + A)))
                            : -(((y[i] - A) > 0 ? (y[i] - A) : -(y[i] - A)) -
                                ((y[i] + A) > 0 ? (y[i] + A) : -(y[i] + A)))))
                  ? (((((y[i] - A) > 0 ? (y[i] - A) : -(y[i] - A)) -
                       ((y[i] + A) > 0 ? (y[i] + A) : -(y[i] + A))) > 0
                          ? (((y[i] - A) > 0 ? (y[i] - A) : -(y[i] - A)) -
                             ((y[i] + A) > 0 ? (y[i] + A) : -(y[i] + A)))
                          : -(((y[i] - A) > 0 ? (y[i] - A) : -(y[i] - A)) -
                              ((y[i] + A) > 0 ? (y[i] + A) : -(y[i] + A)))))
                  : (ans)));
        continue;
      }
      if (x[i] == x[j]) continue;
      double k = (y[i] - y[j]) / (x[i] - x[j]), b = y[i] - x[i] * k;
      if (b >= A || b <= -A) continue;
      double k1 = -1 / k, b1 = A, jiao_x = (b - b1) / (k1 - k),
             jiao_y = b + k * jiao_x;
      double XinShe_x = 2 * jiao_x, XinShe_y = 2 * jiao_y - A;
      ((ans) = ((ans) > (sqrt(((XinShe_x) * (XinShe_x)) +
                              ((-A - XinShe_y) * (-A - XinShe_y))))
                    ? (sqrt(((XinShe_x) * (XinShe_x)) +
                            ((-A - XinShe_y) * (-A - XinShe_y))))
                    : (ans)));
    }
    if (clock() > CLOCKS_PER_SEC * 0.9) break;
  }
  printf("%lf", ans);
}