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;
int X[128];
int Y[128];
int D[128][128];
int Cross(int x1, int y1, int x2, int y2) { return x1 * y2 - x2 * y1; }
int dist2(int x, int y) { return x * x + y * y; }
double dist(double x, double y) { return sqrt(x * x + y * y); }
int main() {
  int n;
  scanf("%d", &n);
  int i, j, k, l;
  for (i = (0); i < (n); ++i) scanf("%d%d", &X[i], &Y[i]);
  set<pair<int, int> > Set;
  for (i = (0); i < (n); ++i) Set.insert(pair<int, int>(X[i], Y[i]));
  for (i = (0); i < (n); ++i)
    for (j = (0); j < (n); ++j) D[i][j] = dist2(X[i] - X[j], Y[i] - Y[j]);
  double res = 0;
  for (i = (0); i < (n); ++i)
    for (j = (0); j < (i); ++j)
      for (k = (0); k < (j); ++k)
        if (Cross(X[j] - X[i], Y[j] - Y[i], X[k] - X[i], Y[k] - Y[i]) != 0) {
          int a[] = {D[i][j], D[i][k], D[j][k]};
          sort(a, a + 3);
          if (a[0] + a[1] <= a[2]) continue;
          double x1 = (X[i] + X[j] + 0.0) / 2;
          double y1 = (Y[i] + Y[j] + 0.0) / 2;
          double dx1 = Y[j] - Y[i];
          double dy1 = X[i] - X[j];
          double x2 = (X[i] + X[k] + 0.0) / 2;
          double y2 = (Y[i] + Y[k] + 0.0) / 2;
          double dx2 = Y[k] - Y[i];
          double dy2 = X[i] - X[k];
          double a1 = dx1;
          double b1 = -dx2;
          double c1 = x2 - x1;
          double a2 = dy1;
          double b2 = -dy2;
          double c2 = y2 - y1;
          double d = a1 * b2 - a2 * b1;
          double d1 = c1 * b2 - c2 * b1;
          double d2 = a1 * c2 - a2 * c1;
          double k1 = d1 / d;
          double k2 = d2 / d;
          double xx = x1 + dx1 * k1;
          double yy = y1 + dy1 * k1;
          double zz = dist(X[i] - xx, Y[i] - yy);
          for (l = (0); l < (n); ++l)
            if (dist(X[l] - xx, Y[l] - yy) < zz - 1e-9) break;
          if (l == n) res = max(res, zz);
        }
  for (i = (0); i < (n); ++i)
    for (j = (0); j < (i); ++j)
      for (k = (0); k < (n); ++k)
        if (k != i && k != j && D[i][k] + D[j][k] == D[i][j] &&
            Set.find(pair<int, int>(X[i] + X[j] - X[k], Y[i] + Y[j] - Y[k])) !=
                Set.end()) {
          double xx = (X[i] + X[j] + 0.0) / 2;
          double yy = (Y[i] + Y[j] + 0.0) / 2;
          double zz = dist(X[i] - xx, Y[i] - yy);
          for (l = (0); l < (n); ++l)
            if (dist(X[l] - xx, Y[l] - yy) < zz - 1e-9) break;
          if (l == n) res = max(res, zz);
        }
  if (res == 0)
    printf("-1\n");
  else
    printf("%.7lf\n", res);
  return 0;
};