Problem: Luyi has n circles on the plane. The i-th circle is centered at (xi, yi). At the time zero circles start to grow simultaneously. In other words, the radius of each circle at time t (t > 0) is equal to t. The circles are drawn as black discs on an infinite white plane. So at each moment the plane consists of several black and white regions. Note that the circles may overlap while growing.

<image>

We define a hole as a closed, connected white region. For instance, the figure contains two holes shown by red border. During growing some holes may be created and it is easy to see that each created hole will disappear eventually. Luyi asks you to find moment of time such that the last hole disappears. In other words, you should find the first moment such that no hole can be seen after that.

Input

The first line of the input contains integer n (1 ≤ n ≤ 100). Each of the next n lines contains two integers xi and yi ( - 104 ≤ xi, yi ≤ 104), indicating the location of i-th circle.

It's guaranteed that no two circles are centered at the same point.

Output

Print the moment where the last hole disappears. If there exists no moment in which we can find holes print -1.

The answer will be considered correct if the absolute or relative error does not exceed 10 - 4.

Examples

Input

3
0 0
1 1
2 2


Output

-1


Input

4
0 0
0 2
2 2
2 0


Output

1.414214


Input

4
0 1
0 -1
-2 0
4 0


Output

2.125000

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-6;
int n, x[100], y[100];
bool is_covered(double x0, double y0, double t) {
  for (int l = 0; l < (n); l++)
    if ((x0 - x[l]) * (x0 - x[l]) + (y0 - y[l]) * (y0 - y[l]) < t * t - EPS)
      return true;
  return false;
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < (n); i++) scanf("%d%d", x + i, y + i);
  double ans = -1;
  for (int i = 0; i < (n); i++)
    for (int j = 0; j < (i); j++) {
      long long x1 = x[i], y1 = y[i];
      long long x2 = x[j], y2 = y[j];
      for (int k = 0; k < (j); k++) {
        long long x3 = x[k], y3 = y[k];
        {
          long long d[3];
          d[0] = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
          d[1] = (x2 - x3) * (x2 - x3) + (y2 - y3) * (y2 - y3);
          d[2] = (x3 - x1) * (x3 - x1) + (y3 - y1) * (y3 - y1);
          sort(d, d + 3);
          if (d[0] + d[1] <= d[2]) continue;
        }
        long long a = -2 * x1 + 2 * x2, b = -2 * y1 + 2 * y2,
                  e = -x1 * x1 - y1 * y1 + x2 * x2 + y2 * y2;
        long long c = -2 * x2 + 2 * x3, d = -2 * y2 + 2 * y3,
                  f = -x2 * x2 - y2 * y2 + x3 * x3 + y3 * y3;
        if (a * d - b * c != 0) {
          double x0 = (double)(d * e - b * f) / (a * d - b * c);
          double y0 = (double)(-c * e + a * f) / (a * d - b * c);
          double t = sqrt((x0 - x1) * (x0 - x1) + (y0 - y1) * (y0 - y1));
          if (ans < t && !is_covered(x0, y0, t)) ans = t;
        }
      }
    }
  pair<int, int> P[100];
  for (int i = 0; i < (n); i++) P[i] = make_pair(x[i], y[i]);
  for (int i = 0; i < (n); i++)
    for (int j = i + 1; j < n; j++)
      for (int k = j + 1; k < n; k++) {
        long long x1 = x[i], y1 = y[i];
        long long x2 = x[j], y2 = y[j];
        long long x3 = x[k], y3 = y[k];
        long long d[3];
        d[0] = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
        d[1] = (x2 - x3) * (x2 - x3) + (y2 - y3) * (y2 - y3);
        d[2] = (x3 - x1) * (x3 - x1) + (y3 - y1) * (y3 - y1);
        if (d[0] < d[1]) swap(d[0], d[1]), swap(x1, x3), swap(y1, y3);
        if (d[0] < d[2]) swap(d[0], d[2]), swap(x2, x3), swap(y2, y3);
        if (d[0] == d[1] + d[2]) {
          long long x4 = x3 + (x1 - x3) + (x2 - x3);
          long long y4 = y3 + (y1 - y3) + (y2 - y3);
          double x0 = (x1 + x2) / 2.0;
          double y0 = (y1 + y2) / 2.0;
          double t = sqrt(d[0]) / 2;
          if (binary_search(P, P + n, pair<int, int>(x4, y4)) &&
              !is_covered(x0, y0, t))
            ans = max(ans, t);
        }
      }
  printf("%.9f\n", ans);
  return 0;
}