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;
class point {
 public:
  long double x, y;
  void input() { cin >> x >> y; }
  long double dist(point P) {
    return sqrtl(((x - P.x) * (x - P.x)) + ((y - P.y) * (y - P.y)));
  }
  long double dist2(point P) {
    return ((x - P.x) * (x - P.x)) + ((y - P.y) * (y - P.y));
  }
  point() { x = y = 0; }
  point(long double x, long double y) : x(x), y(y) {}
  friend ostream &operator<<(ostream &cout, point X) {
    cout << "(" << X.x << ", " << X.y << ")";
    return cout;
  }
};
int n;
vector<point> p;
class line {
 public:
  long double a, b, c;
  point A, B;
  line(long double a, long double b, long double c) : a(a), b(b), c(c) {}
  line(point A, point B) : A(A), B(B) {
    a = A.y - B.y;
    b = B.x - A.x;
    c = -(a * A.x + b * A.y);
  }
  point intersect(line B) {
    if (abs(a) < 1e-9) return B.intersect((*this));
    B.b -= (B.a / a) * b;
    B.c -= (B.a / a) * c;
    long double y = -B.c / B.b;
    long double x = (-c - b * y) / a;
    return point(x, y);
  }
  line perpendicular_bisector() {
    line res(b, -a, 0);
    point mid((A.x + B.x) / 2, (A.y + B.y) / 2);
    res.c = -(mid.x * res.a + mid.y * res.b);
    return res;
  }
};
point circumcenter(point A, point B, point C) {
  {
    long double AB = A.dist(B);
    long double AC = A.dist(C);
    long double BC = B.dist(C);
    if (min(min(((AB) * (AB)) + ((AC) * (AC)) - ((BC) * (BC)),
                ((AB) * (AB)) + ((BC) * (BC)) - ((AC) * (AC))),
            ((AC) * (AC)) + ((BC) * (BC)) - ((AB) * (AB))) <= -1e-9)
      return point(-1e8, -1e8);
    if (min(min(abs(((AB) * (AB)) + ((AC) * (AC)) - ((BC) * (BC))),
                abs(((AB) * (AB)) + ((BC) * (BC)) - ((AC) * (AC)))),
            abs(((AC) * (AC)) + ((BC) * (BC)) - ((AB) * (AB)))) <= 1e-9) {
      return point(-1e9, -1e9);
    }
  }
  line AB(A, B), BC(B, C);
  AB = AB.perpendicular_bisector();
  BC = BC.perpendicular_bisector();
  return AB.intersect(BC);
}
long double ans = 0;
void check_rect(point A, point B, point C, point D) {
  if (A.dist(B) > A.dist(C)) swap(B, C);
  if (A.dist(C) > A.dist(D)) swap(C, D);
  if (abs(A.dist2(B) + A.dist2(C) - B.dist2(C)) > 1e-9) return;
  if (abs(D.dist2(B) + D.dist2(C) - B.dist2(C)) > 1e-9) return;
  if (abs(B.dist2(A) + B.dist2(D) - A.dist2(D)) > 1e-9) return;
  if (abs(B.dist2(C) - A.dist2(D)) > 1e-9) return;
  point X((A.x + D.x) / 2, (A.y + D.y) / 2);
  long double min_time = 1e9;
  for (auto B : p) min_time = min(min_time, X.dist(B));
  if (min_time - A.dist(X) < -1e-9) return;
  ans = max(ans, min_time);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cin >> n;
  p.resize(n);
  for (auto &x : p) x.input();
  for (int i = 0; i < n; i++)
    for (int j = i + 1; j < n; j++)
      for (int k = j + 1; k < n; k++) {
        point A = circumcenter(p[i], p[j], p[k]);
        if (A.x == -1e9) {
          for (int l = k + 1; l < n; l++) check_rect(p[i], p[j], p[k], p[l]);
          continue;
        } else if (A.x == -1e8)
          continue;
        long double min_time = 1e9;
        for (auto B : p) min_time = min(min_time, A.dist(B));
        if (min_time - p[i].dist(A) < -1e-9) continue;
        ans = max(ans, min_time);
      }
  if (abs(ans) < 1e-9)
    cout << "-1\n";
  else
    cout << setprecision(10) << fixed << ans << '\n';
}