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>
const double eps = 1e-8;
struct point {
  double x;
  double y;
};
struct line {
  double a;
  double b;
};
struct triangle {
  point p1;
  point p2;
  point p3;
};
double max(double a, double b) {
  if (a > b)
    return a;
  else
    return b;
}
double distance(point p1, point p2) {
  double d =
      sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));
  return d;
}
line giveLine(point p1, point p2) {
  line L;
  L.a = (p2.y - p1.y) / (p2.x - p1.x);
  L.b = (p1.y - L.a * p1.x);
  return L;
}
line giveBisector(point p1, point p2, point p3) {
  line L;
  point M;
  if (p1.y == p2.y) p1 = p3;
  M.x = (p1.x + p2.x) / 2;
  M.y = (p1.y + p2.y) / 2;
  L.a = -1 / giveLine(p1, p2).a;
  L.b = M.y - L.a * M.x;
  return L;
}
point cross(line L1, line L2) {
  point C;
  C.x = -(L1.b - L2.b) / (L1.a - L2.a);
  C.y = L1.a * C.x + L1.b;
  return C;
}
point circumcenter(triangle T) {
  point M;
  M = cross(giveBisector(T.p1, T.p2, T.p3), giveBisector(T.p1, T.p3, T.p2));
  return M;
}
bool collinear(point p1, point p2, point p3) {
  bool test;
  if (p1.x == p2.x && p1.x == p3.x) return true;
  line L = giveLine(p1, p2);
  test = fabs((p3.y - L.a * p3.x - L.b)) < eps;
  return test;
}
bool acute(triangle T) {
  bool test;
  double a = distance(T.p1, T.p2);
  double b = distance(T.p2, T.p3);
  double c = distance(T.p3, T.p1);
  if (b > a) {
    double tmp = a;
    a = b;
    b = tmp;
  };
  if (c > a) {
    double tmp = a;
    a = c;
    c = tmp;
  };
  test = ((b * b + c * c - a * a) / (2 * b * c)) > eps;
  return test;
}
bool right(triangle T) {
  bool test;
  double a = distance(T.p1, T.p2);
  double b = distance(T.p2, T.p3);
  double c = distance(T.p3, T.p1);
  if (b > a) {
    double tmp = a;
    a = b;
    b = tmp;
  };
  if (c > a) {
    double tmp = a;
    a = c;
    c = tmp;
  };
  test = fabs((a * a - b * b - c * c)) < eps;
  return test;
}
double radius(triangle T) {
  double R;
  R = distance(T.p1, circumcenter(T));
  return R;
}
bool inside(triangle T, point p) {
  point O = circumcenter(T);
  double R = radius(T);
  bool test = (R - distance(O, p)) > eps;
  return test;
}
bool onCircle(triangle T, point p) {
  point O = circumcenter(T);
  double R = radius(T);
  bool test = fabs((R - distance(O, p))) < eps;
  return test;
}
int main() {
  triangle T;
  double time = 0;
  double tmptime = 0;
  double wrong = false;
  double x, y;
  int n;
  point p1, p2, p3, p4;
  scanf("%d", &n);
  point points[n];
  for (int i = 0; i < n; i++) {
    scanf("%lf", &x);
    scanf("%lf", &y);
    points[i].x = x;
    points[i].y = y;
  }
  for (int i = 0; i < n; i++) {
    for (int j = i + 1; j < n; j++) {
      for (int k = j + 1; k < n; k++) {
        p1 = points[i];
        p2 = points[j];
        p3 = points[k];
        if (collinear(p1, p2, p3)) break;
        T.p1 = p1;
        T.p2 = p2;
        T.p3 = p3;
        if (right(T)) {
          tmptime = time;
          for (int m = 0; m < n; m++) {
            if (m != i && m != j && m != k) {
              if (onCircle(T, points[m])) {
                tmptime = max(tmptime, radius(T));
              } else if (inside(T, points[m])) {
                wrong = true;
                break;
              }
              if (wrong) break;
            }
          }
          if (!wrong) time = tmptime;
        } else if (acute(T)) {
          tmptime = time;
          for (int m = 0; m < n; m++) {
            if (m != i && m != j && m != k) {
              if (inside(T, points[m])) wrong = true;
            }
            if (wrong) break;
            tmptime = max(tmptime, radius(T));
          }
          if (!wrong) time = tmptime;
        }
        wrong = false;
      }
    }
  }
  if (time == 0) time = -1;
  printf("%.6lf", time);
  return 0;
}