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 pi = acos(-1);
struct pnt {
  double x, y;
  pnt(double x = 0, double y = 0) : x(x), y(y) {}
  pnt operator-(pnt a) { return pnt(x - a.x, y - a.y); }
  pnt operator+(pnt a) { return pnt(x + a.x, y + a.y); }
  pnt operator*(double a) { return pnt(x * a, y * a); }
  pnt operator/(double a) { return pnt(x / a, y / a); }
  double operator^(pnt a) { return x * a.y - y * a.x; }
  double operator&(pnt a) { return x * a.x + y * a.y; }
  double dist() { return sqrt(x * x + y * y); }
  void input() { scanf("%lf %lf", &x, &y); }
} p[1010], cr[1010], P[1010 * 1010];
double r[1010];
int n;
double f(int i, int j, int k) { return p[i] - p[j] & p[k] - p[j]; }
double area(int i, int j, int k) { return fabs(p[i] - p[j] ^ p[k] - p[j]); }
pnt outercenter(pnt a, pnt b, pnt c) {
  double c1 = ((a & a) - (b & b)) / 2, c2 = ((a & a) - (c & c)) / 2;
  double x0 = (c1 * (a.y - c.y) - c2 * (a.y - b.y)) / (a - b ^ a - c);
  double y0 = (c1 * (a.x - c.x) - c2 * (a.x - b.x)) / (a - c ^ a - b);
  return pnt(x0, y0);
}
bool chk(pnt a, pnt b, pnt c, int i, int j, int k) {
  int t;
  double r = (b - c).dist() / 2;
  pnt o = (b + c) / 2;
  int bf = 0;
  for (t = 0; t < n; t++) {
    if (t != i && t != j && t != k) {
      if ((p[t] - c ^ b - c) * (a - c ^ b - c) < -1e-9) {
        if ((p[t] - b).dist() < 2 * r && (p[t] - c).dist() < 2 * r) bf = 1;
      }
      if ((o - p[t]).dist() < r - 1e-9) break;
    }
  }
  if (bf && t == n) return 1;
  return 0;
}
int main() {
  int tc;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) p[i].input();
  double ans = -1;
  for (int i = 0; i < n; i++)
    for (int j = i + 1; j < n; j++)
      for (int k = j + 1; k < n; k++) {
        if (f(i, j, k) < -1e-9 || f(i, k, j) < -1e-9 || f(j, i, k) < -1e-9)
          continue;
        int t;
        pnt a, b, c;
        if (f(i, j, k) < 1e-9) {
          a = p[j], b = p[i], c = p[k];
          if (chk(a, b, c, i, j, k)) ans = max(ans, (b - c).dist() / 2);
        } else if (f(i, k, j) < 1e-9) {
          a = p[k], b = p[i], c = p[j];
          if (chk(a, b, c, i, j, k)) ans = max(ans, (b - c).dist() / 2);
        } else if (f(j, i, k) < 1e-9) {
          a = p[i], b = p[j], c = p[k];
          if (chk(a, b, c, i, j, k)) ans = max(ans, (b - c).dist() / 2);
        } else {
          double r = (p[i] - p[j]).dist() * (p[i] - p[k]).dist() *
                     (p[j] - p[k]).dist() / area(i, j, k) / 2;
          pnt o = outercenter(p[i], p[j], p[k]);
          for (t = 0; t < n; t++) {
            if (t != i && t != j && t != k) {
              if ((o - p[t]).dist() < r - 1e-9) break;
            }
          }
          if (t == n) {
            ans = max(ans, r);
          }
        }
      }
  if (ans < -1e-9)
    puts("-1");
  else
    printf("%.12lf\n", ans);
}