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 point {
  double x, y;
  point(double X = 0, double Y = 0) {
    x = X;
    y = Y;
  }
  double dist(point& p) {
    return sqrt(0. + ((p.x - x) * (p.x - x)) + ((p.y - y) * (p.y - y)));
  }
  double dist2(point& p) {
    return ((p.x - x) * (p.x - x)) + ((p.y - y) * (p.y - y));
  }
};
bool operator<(const point& p, const point& q) {
  return p.x < q.x || p.x == q.x && p.y < q.y;
}
double v(point p1, point p2, point p3) {
  return (p1.x - p3.x) * (p2.y - p3.y) - (p2.x - p3.x) * (p1.y - p3.y);
}
int n, m;
int i, j, k, l;
point p[111];
bool hl[111][111];
bool hr[111][111];
bool crossll(point a, point b, point c, point d, point& x) {
  double u1 = (d.x - c.x) * (a.y - c.y) - (d.y - c.y) * (a.x - c.x);
  double u2 = (b.x - a.x) * (a.y - c.y) - (b.y - a.y) * (a.x - c.x);
  double z = (b.x - a.x) * (d.y - c.y) - (b.y - a.y) * (d.x - c.x);
  if (z != 0) {
    u1 /= z;
    u2 /= z;
    x = point(a.x + (b.x - a.x) * u1, a.y + (b.y - a.y) * u1);
    return true;
  }
  return false;
}
pair<point, double> crc(point p1, point p2, point p3) {
  double a = p1.dist2(p2);
  double b = p2.dist2(p3);
  double c = p3.dist2(p1);
  double r = v(p1, p2, p3);
  r = abs(r) / 2;
  if (r == 0) return make_pair(point(0, 0), 0);
  r = (sqrt(a) * sqrt(b) * sqrt(c)) / r / 4;
  double vx = p2.x - p1.x;
  double vy = p2.y - p1.y;
  point o, pa, pb, pc, pd;
  pa = point((p1.x + p2.x) / 2, (p1.y + p2.y) / 2);
  pb = point(p1.x + vx / 2 + vy / a * r, p1.y + vy / 2 - vx / a * r);
  vx = p3.x - p2.x;
  vy = p3.y - p2.y;
  pc = point((p2.x + p3.x) / 2, (p2.y + p3.y) / 2);
  pd = point(p2.x + vx / 2 + vy / a * r, p2.y + vy / 2 - vx / a * r);
  crossll(pa, pb, pc, pd, o);
  return make_pair(o, r);
}
int main() {
  cin >> n;
  for (i = 0; i < n; ++i) cin >> p[i].x >> p[i].y;
  set<point> ps;
  for (i = 0; i < n; ++i) ps.insert(p[i]);
  for (i = 0; i < n; ++i)
    for (j = 0; j < n; ++j)
      if (i != j) {
        for (k = 0; k < n; ++k)
          if (i != k && j != k) {
            if (p[i].dist2(p[j]) == p[i].dist2(p[k]) + p[k].dist2(p[j])) {
              hl[i][j] |= v(p[i], p[k], p[j]) < 0;
              hr[i][j] |= v(p[i], p[k], p[j]) > 0;
            }
          }
      }
  double t = -1, eps = 1e-7;
  for (i = 0; i < n; ++i)
    for (j = i + 1; j < n; ++j)
      if (i != j)
        for (k = j + 1; k < n; ++k)
          if (i != k && j != k) {
            pair<point, double> pp = crc(p[i], p[j], p[k]);
            double a = p[i].dist2(p[j]);
            double b = p[j].dist2(p[k]);
            double c = p[k].dist2(p[i]);
            double r = pp.second;
            if (r == 0) continue;
            for (l = 0; l < n; ++l)
              if (i != l && j != l && k != l) {
                if (pp.first.dist2(p[l]) + eps < r * r) {
                  break;
                }
              }
            if (l < n) continue;
            if (a + b > c && a + c > b && c + b > a) t = max(t, r);
            if (a == b + c) {
              if (v(p[i], p[k], p[j]) < 0 && hr[i][j] ||
                  v(p[i], p[k], p[j]) > 0 && hl[i][j])
                t = max(t, r);
            } else if (b == c + a) {
              if (v(p[j], p[i], p[k]) < 0 && hr[j][k] ||
                  v(p[j], p[i], p[k]) > 0 && hl[j][k])
                t = max(t, r);
            } else if (c == a + b) {
              if (v(p[k], p[j], p[i]) < 0 && hr[k][i] ||
                  v(p[k], p[j], p[i]) > 0 && hl[k][i])
                t = max(t, r);
            }
          }
  if (t == -1)
    cout << -1 << endl;
  else
    printf("%.15lf\n", t);
  return 0;
}