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 int inf = 0x3f3f3f3f;
const long long infLL = 0x3f3f3f3f3f3f3f3fLL;
const double eps = 1e-8;
int sgn(double x) { return x < -eps ? -1 : x > eps; }
double dot(complex<double> u, complex<double> v) {
  return u.real() * v.real() + u.imag() * v.imag();
}
complex<double> circumcenter(complex<double> a, complex<double> b,
                             complex<double> c) {
  double d1 = dot(b - a, c - a), d2 = dot(a - b, c - b), d3 = dot(a - c, b - c);
  double k1 = d2 * d3, k2 = d1 * d3, k3 = d1 * d2, k = k1 + k2 + k3;
  return ((k2 + k3) * a + (k1 + k3) * b + (k1 + k2) * c) / (2 * k);
}
const int maxn = 100 + 5;
int n;
complex<double> p[maxn];
set<pair<int, int> > st;
bool check(complex<double> a, complex<double> b, complex<double> c) {
  int s1 = sgn(dot(b - a, c - a)), s2 = sgn(dot(a - b, c - b)),
      s3 = sgn(dot(a - c, b - c));
  if (s1 > 0 && s2 > 0 && s3 > 0) return true;
  if (!s1) {
    complex<double> d = b + c - a;
    return st.count(pair<int, int>(d.real() + eps, d.imag() + eps));
  }
  if (!s2) {
    complex<double> d = a + c - b;
    return st.count(pair<int, int>(d.real() + eps, d.imag() + eps));
  }
  if (!s3) {
    complex<double> d = a + b - c;
    return st.count(pair<int, int>(d.real() + eps, d.imag() + eps));
  }
  return false;
}
bool check(complex<double> o, double r) {
  for (int i = 0; i < (n); ++i)
    if (sgn(abs(p[i] - o) - r) < 0) return false;
  return true;
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < (n); ++i) {
    int x, y;
    scanf("%d%d", &x, &y);
    p[i] = complex<double>(x, y);
    st.insert(pair<int, int>(x, y));
  }
  double ret = 0;
  bool found = false;
  for (int i = 0; i < (n); ++i)
    for (int j = 0; j < (i); ++j)
      for (int k = 0; k < (j); ++k)
        if (check(p[i], p[j], p[k])) {
          complex<double> o = circumcenter(p[i], p[j], p[k]);
          double r = abs(p[i] - o);
          if (check(o, r)) {
            found = true;
            ret = max(ret, r);
          }
        }
  if (!found)
    puts("-1");
  else
    printf("%.10f\n", ret);
  return 0;
}