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;
struct P {
  double x, y;
  P() {}
  P(double xx, double yy) : x(xx), y(yy) {}
  void input() { scanf("%lf%lf", &x, &y); }
  void print() { printf("%lf,%lf\n", x, y); }
  P operator+(P b) { return P(x + b.x, y + b.y); }
  P operator-(P b) { return P(x - b.x, y - b.y); }
  P operator*(double t) { return P(x * t, y * t); }
  P operator/(double t) { return P(x / t, y / t); }
};
struct Line {
  P p, q;
  Line() {}
};
int n;
P c[110];
double dot(P a, P b) { return a.x * b.x + a.y * b.y; }
double cross(P a, P b) { return a.x * b.y - a.y * b.x; }
double cross(P o, P a, P b) { return cross(a - o, b - o); }
double dis(P a) { return sqrt(a.x * a.x + a.y * a.y); }
double dis(P a, P b) { return dis(a - b); }
P ret(P a) { return P(a.y, -a.x); }
int bad(P p, P q, P r) {
  double t = min(dot(q - p, r - p), min(dot(p - q, r - q), dot(p - r, q - r)));
  if (t < -1e-7)
    return -1;
  else if (t < 1e-7)
    return 0;
  return 1;
}
P itp(P a, P b, double ta, double tb) { return (a * tb + b * ta) / (ta + tb); }
P intersect(Line l1, Line l2) {
  double ta = cross(l1.p, l2.p, l2.q);
  double tb = cross(l1.q, l2.p, l2.q);
  return itp(l1.p, l1.q, ta, -tb);
}
P get(P p, P q, P r) {
  Line la, lb;
  la.p = (p + q) / 2;
  la.q = la.p + ret(p - q);
  lb.p = (p + r) / 2;
  lb.q = lb.p + ret(p - r);
  return intersect(la, lb);
}
bool shik(P o, P a, P b) { return dis(a + b, o + o) < 1e-7; }
double go(int p, int q, int r) {
  int cd = bad(c[p], c[q], c[r]);
  if (cd == -1) return -1;
  P tar = get(c[p], c[q], c[r]);
  double d = dis(tar, c[p]);
  for (int i = 0; i < n; i++) {
    if (dis(tar, c[i]) + 1e-7 < d) return -1;
  }
  if (cd == 0) {
    bool has[3];
    for (int i = 0; i < 3; i++) has[i] = false;
    for (int i = 0; i < n; i++) {
      if (shik(tar, c[i], c[p])) has[0]++;
      if (shik(tar, c[i], c[q])) has[1]++;
      if (shik(tar, c[i], c[r])) has[2]++;
    }
    if (!has[0] || !has[1] || !has[2]) return -1;
  }
  return d;
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) c[i].input();
  double mx = -1;
  for (int i = 0; i < n; i++) {
    for (int j = i + 1; j < n; j++) {
      for (int k = j + 1; k < n; k++) {
        mx = max(mx, go(i, j, k));
      }
    }
  }
  if (mx < -0.5)
    puts("-1");
  else
    printf("%.8lf\n", mx);
  return 0;
}