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;
double error = 1e-7;
double prodesc(complex<double> p1, complex<double> p2) {
  return real(conj(p1) * p2);
}
double prodvec(complex<double> p1, complex<double> p2) {
  return imag(conj(p1) * p2);
}
bool paralel(complex<double> v1, complex<double> v2) {
  return abs(prodvec(v1, v2)) < error;
}
bool alineados(complex<double> p1, complex<double> p2, complex<double> p3) {
  return paralel(p2 - p1, p3 - p1);
}
complex<double> intersec(complex<double> p1, complex<double> v1,
                         complex<double> p2, complex<double> v2) {
  return p1 + prodvec(p2 - p1, v2) / prodvec(v1, v2) * v1;
}
complex<double> leer() {
  double x, y;
  cin >> x >> y;
  return complex<double>(x, y);
}
void ortogonal(complex<double> p1, complex<double> p2, complex<double> &p,
               complex<double> &v) {
  p = 0.5 * (p1 + p2);
  v = complex<double>(0, 1) * (1 / abs(p2 - p1)) * (p2 - p1);
}
int main() {
  cout.setf(ios::fixed);
  cout.precision(10);
  int n;
  cin >> n;
  vector<complex<double> > vec(n);
  for (int i = 0; i < n; i++) vec[i] = leer();
  double sol = 0;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (i != j) {
        complex<double> p1 = vec[i];
        complex<double> p2 = vec[j];
        complex<double> p, v;
        ortogonal(p1, p2, p, v);
        double dist = 1000000000;
        int tipo = 0;
        complex<double> pc;
        for (int k = 0; k < n; k++) {
          complex<double> p3 = vec[k];
          if (k != i and k != j and prodvec(p2 - p1, p3 - p1) > error) {
            complex<double> pp, vv;
            ortogonal(p1, p3, pp, vv);
            complex<double> pinter = intersec(p, v, pp, vv);
            if (prodvec(p2 - p1, pinter - p1) < error) continue;
            if (prodvec(p3 - p1, pinter - p1) > error or
                prodvec(p3 - p2, pinter - p2) < -error)
              continue;
            double nextdist = abs(pinter - p1);
            if (prodvec(p3 - p1, pinter - p1) < -error and
                prodvec(p3 - p2, pinter - p2) > error) {
              if (nextdist < dist) {
                dist = nextdist;
                tipo = 0;
                pc = pinter;
              }
              continue;
            }
            if (nextdist < dist - error) {
              dist = nextdist;
              tipo = 1;
              pc = pinter;
            } else if (abs(nextdist - dist) < error) {
              tipo = 0;
            }
          }
        }
        if (dist < 1000000000 - error and tipo == 0) {
          double realdist = dist;
          for (int k = 0; k < n; k++)
            if (k != i and k != j) realdist = min(realdist, abs(vec[k] - pc));
          if (realdist >= dist - error) sol = max(sol, dist);
        }
      }
    }
  }
  if (sol == 0)
    cout << -1 << endl;
  else
    cout << sol << endl;
}