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;
bool eq(double a, double b) { return fabs(a - b) < 1e-9; }
bool ls(double a, double b) { return a + 1e-9 < b; }
bool gr(double a, double b) { return a - 1e-9 > b; }
bool circleThroughPoints(double x1, double y1, double x2, double y2, double x3,
                         double y3, double &x, double &y, double &r) {
  double d = 2 * (y1 * x3 + y2 * x1 - y2 * x3 - y1 * x2 - y3 * x1 + y3 * x2);
  if (eq(d, 0)) return false;
  x = (y2 * x1 * x1 - y3 * x1 * x1 - y2 * y2 * y1 + y3 * y3 * y1 +
       x2 * x2 * y3 + y1 * y1 * y2 + x3 * x3 * y1 - y3 * y3 * y2 -
       x3 * x3 * y2 - x2 * x2 * y1 + y2 * y2 * y3 - y1 * y1 * y3) /
      d;
  y = (x1 * x1 * x3 + y1 * y1 * x3 + x2 * x2 * x1 - x2 * x2 * x3 +
       y2 * y2 * x1 - y2 * y2 * x3 - x1 * x1 * x2 - y1 * y1 * x2 -
       x3 * x3 * x1 + x3 * x3 * x2 - y3 * y3 * x1 + y3 * y3 * x2) /
      d;
  r = sqrt((x1 - x) * (x1 - x) + (y1 - y) * (y1 - y));
  return true;
}
int n;
double x[110], y[110];
vector<double> v;
double dist(int idx, double a, double b) {
  double dx = x[idx] - a;
  double dy = y[idx] - b;
  return sqrt(dx * dx + dy * dy);
}
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> x[i] >> y[i];
  double a, b, r;
  bool flag = false;
  double res = 0;
  for (int i = 0; i < n; i++) {
    for (int j = i + 1; j < n; j++) {
      for (int k = j + 1; k < n; k++) {
        if (circleThroughPoints(x[i], y[i], x[j], y[j], x[k], y[k], a, b, r)) {
          bool gd = true;
          v.clear();
          for (int l = 0; l < n; l++) {
            if (ls(dist(l, a, b), r)) gd = false;
            if (eq(dist(l, a, b), r)) {
              v.push_back(atan2(y[l] - b, x[l] - a));
            }
          }
          sort(v.begin(), v.end());
          v.push_back(v[0] + 2 * acos(-1.));
          for (int i = 1; i < v.size(); i++) {
            double t = v[i] - v[i - 1];
            if (!ls(t, acos(-1.))) gd = false;
          }
          if (gd) {
            res = max(res, r);
            flag = true;
          }
        }
      }
    }
  }
  if (flag) {
    cout.precision(6);
    cout.setf(ios::fixed | ios::showpoint);
    cout << res << endl;
  } else
    cout << -1 << endl;
  return 0;
}