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_N = 100 + 5;
const double EPS = 1e-9;
int N;
double z[MAX_N];
double d[MAX_N][MAX_N];
struct Point {
  double x, y;
  Point(double x_ = 0, double y_ = 0) : x(x_), y(y_) {}
  inline double norm() const { return sqrt(x * x + y * y); }
  inline Point operator+(const Point &b) const {
    return Point(x + b.x, y + b.y);
  }
  inline Point operator-(const Point &b) const {
    return Point(x - b.x, y - b.y);
  }
  inline Point operator*(double b) const { return Point(x * b, y * b); }
  inline double operator*(const Point &b) const { return x * b.y - b.x * y; }
  inline double operator%(const Point &b) const { return x * b.x + y * b.y; }
} a[MAX_N];
int find_point(const Point &p) {
  for (int i = 1; i <= N; i++) {
    if (a[i].x == p.x && a[i].y == p.y) {
      return i;
    }
  }
  return 0;
}
Point get_center(int i, int j, int k) {
  double r = (a[j].x - a[i].x) * 2;
  double s = (a[j].y - a[i].y) * 2;
  double t = z[j] - z[i];
  double u = (a[k].x - a[i].x) * 2;
  double v = (a[k].y - a[i].y) * 2;
  double w = z[k] - z[i];
  double o = r * v - s * u;
  double p = t * v - s * w;
  double q = r * w - t * u;
  return Point(p / o, q / o);
}
int main() {
  scanf("%d", &N);
  for (int i = 1; i <= N; i++) {
    scanf("%lf%lf", &a[i].x, &a[i].y);
    z[i] = a[i] % a[i];
    for (int j = 1; j < i; j++) {
      d[j][i] = d[i][j] = (a[i] - a[j]).norm();
    }
  }
  double ans = -1;
  for (int i = 1; i <= N; i++) {
    for (int j = i + 1; j <= N; j++) {
      for (int k = j + 1; k <= N; k++) {
        double s = abs((a[i] - a[k]) * (a[j] - a[k]));
        if (s < EPS) continue;
        double r = d[i][j] * d[i][k] * d[j][k] / s * 0.5;
        if (r < ans) continue;
        double c1 = (a[j] - a[i]) % (a[k] - a[i]);
        double c2 = (a[k] - a[j]) % (a[i] - a[j]);
        double c3 = (a[i] - a[k]) % (a[j] - a[k]);
        if (c1 < 0 || c2 < 0 || c3 < 0) continue;
        if (c1 == 0 && !find_point(a[j] + a[k] - a[i])) continue;
        if (c2 == 0 && !find_point(a[k] + a[i] - a[j])) continue;
        if (c3 == 0 && !find_point(a[i] + a[j] - a[k])) continue;
        Point o = get_center(i, j, k);
        int ok = 1;
        for (int l = 1; l <= N; l++) {
          if ((a[l] - o).norm() < r - EPS) {
            ok = 0;
          }
        }
        if (ok) ans = max(ans, r);
      }
    }
  }
  if (ans < 0) {
    printf("-1\n");
  } else {
    printf("%.6lf\n", ans);
  }
  return 0;
}