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 eps = 1e-8;
int dcmp(double x) { return (x > eps) - (x < -eps); }
template <class T>
T dot(complex<T> a, complex<T> b) {
  return real(conj(a) * b);
}
template <class T>
T cross(complex<T> a, complex<T> b) {
  return imag(conj(a) * b);
}
template <class T>
T dot(complex<T> a, complex<T> b, complex<T> c) {
  return dot(b - a, c - a);
}
template <class T>
T cross(complex<T> a, complex<T> b, complex<T> c) {
  return cross(b - a, c - a);
}
complex<double> bary(complex<double> A, complex<double> B, complex<double> C,
                     double a, double b, double c) {
  return (A * a + B * b + C * c) / (a + b + c);
}
complex<double> circumcenter(complex<double> A, complex<double> B,
                             complex<double> C) {
  double a = norm(B - C), b = norm(C - A), c = norm(A - B);
  return bary(A, B, C, a * (b + c - a), b * (c + a - b), c * (a + b - c));
}
const int MAXN = 120;
int n;
complex<int> p0[MAXN];
complex<double> p[MAXN];
double ans;
struct cmp {
  bool operator()(const complex<int> &a, const complex<int> &b) {
    return dcmp(real(a) - real(b)) ? real(a) < real(b) : imag(a) < imag(b);
  }
};
set<complex<int>, cmp> S;
void init() {
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) {
    int x, y;
    scanf("%d%d", &x, &y);
    p[i] = p0[i] = {x, y};
    S.insert(p0[i]);
  }
}
bool check(complex<double> c, double r) {
  for (int i = 0; i < n; ++i) {
    if (dcmp(abs(c - p[i]) - r) < 0) return false;
  }
  return true;
}
void solve() {
  ans = -1;
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < i; ++j) {
      for (int k = 0; k < j; ++k) {
        int d1 = dot(p0[i], p0[j], p0[k]);
        int d2 = dot(p0[j], p0[k], p0[i]);
        int d3 = dot(p0[k], p0[i], p0[j]);
        if (d1 < 0 || d2 < 0 || d3 < 0) continue;
        if (d1 == 0 || d2 == 0 || d3 == 0) {
          auto another = p0[i] + p0[j] + p0[k];
          if (d1 == 0) another -= p0[i] * 2;
          if (d2 == 0) another -= p0[j] * 2;
          if (d3 == 0) another -= p0[k] * 2;
          if (S.find(another) == S.end()) continue;
        }
        complex<double> c = circumcenter(p[i], p[j], p[k]);
        double r = abs(c - p[i]);
        if (check(c, r)) ans = max(ans, r);
      }
    }
  }
}
int main() {
  init();
  solve();
  printf("%f\n", ans);
}