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 MAX = 10000;
set<pair<int, int> > h;
int round1(const double &x) { return (int)(floor(x + 0.5)); }
struct vec {
  double x, y;
  vec(const double &xx, const double &yy) {
    x = xx;
    y = yy;
  }
  vec(void) {}
  vec(const vec &t) {
    x = t.x;
    y = t.y;
  }
};
double dist(const vec &x, const vec &y) {
  return sqrt(pow(x.x - y.x, 2) + pow(x.y - y.y, 2));
}
double dot_mul(const vec &x, const vec &y) { return x.x * y.x + x.y * y.y; }
vec num_mul(const double &k, const vec &x) { return vec(k * x.x, k * x.y); }
vec add(const vec &x, const vec &y) { return vec(x.x + y.x, x.y + y.y); }
vec sub(const vec &x, const vec &y) { return vec(x.x - y.x, x.y - y.y); }
vec triangle_circum_center(const vec &A, const vec &B, const vec &C) {
  double a = dist(B, C);
  double b = dist(A, C);
  double c = dist(A, B);
  double P = (a * a + b * b + c * c) / 2;
  double Q = 1 / (1 / (P - a * a) + 1 / (P - b * b) + 1 / (P - c * c));
  double k1 = Q / (P - a * a), k2 = Q / (P - b * b), k3 = Q / (P - c * c);
  return add(add(num_mul((1 - k1) / 2, A), num_mul((1 - k2) / 2, B)),
             num_mul((1 - k3) / 2, C));
}
bool check(double x, double y, double t, const vector<vec> &p) {
  int cnt;
  vec c(x, y);
  for (int(i) = 0; (i) < (int)(p.size()); ++(i))
    if (dist(p[i], c) < t - 1e-9) return false;
  return true;
}
int main() {
  int n;
  cin >> n;
  vector<vec> p;
  for (int(i) = 0; (i) < (int)(n); ++(i)) {
    int x, y;
    cin >> x >> y;
    h.insert(make_pair((x), (y)));
    p.push_back(vec(x, y));
  }
  double ans = -1;
  for (int(i) = 0; (i) < (int)(n); ++(i)) {
    for (int(j) = 0; (j) < (int)(n); ++(j))
      if (i != j) {
        for (int(k) = 0; (k) < (int)(n); ++(k))
          if (i != k && j != k) {
            vec l1 = sub(p[i], p[j]);
            vec l2 = sub(p[k], p[i]);
            vec l3 = sub(p[j], p[k]);
            double p1 = dot_mul(l1, l2), p2 = dot_mul(l2, l3),
                   p3 = dot_mul(l3, l1);
            if (fabs(p1 * p2 * p3) < 1e-9) {
              vec r;
              double xx, yy;
              if (!p1) {
                r = add(p[j], l2);
              } else if (!p2) {
                r = add(p[i], l3);
              } else {
                r = add(p[k], l1);
              }
              if (h.find(make_pair((round1(r.x)), (round1(r.y)))) != h.end()) {
                vec O = triangle_circum_center(p[i], p[j], p[k]);
                double t = dist(p[i], O);
                if (t > ans && check(O.x, O.y, t, p)) {
                  ans = t;
                }
              }
            } else if (p1 > 1e-9 || p2 > 1e-9 || p3 > 1e-9) {
              continue;
            } else {
              vec O = triangle_circum_center(p[i], p[j], p[k]);
              double t = dist(p[i], O);
              if (t > ans && check(O.x, O.y, t, p)) {
                ans = t;
              }
            }
          }
      }
  }
  if (ans < 0)
    cout << -1 << endl;
  else
    printf("%.9lf", ans);
  return 0;
}