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-5;
void getVec(int ax, int ay, int bx, int by, int* vx, int* vy);
double getLen(double ax, double ay, double bx, double by);
double cosFromVec(int v1x, int v1y, int v2x, int v2y);
void getCenter(double ax, double ay, double bx, double by, double cx, double cy,
               double* rx, double* ry);
double getLengthOfEraseHall(int ai, int bi, int ci);
const double PI = 3.14159265258979;
int N;
int xs[100];
int ys[100];
double coss[100][100][100];
int main() {
  istream& in = cin;
  in >> N;
  for (int i = 0; i < N; i++) {
    in >> xs[i] >> ys[i];
  }
  for (int a = 0; a < N; a++)
    for (int b = 0; b < N; b++)
      for (int c = 0; c < N; c++) {
        if (a == b || b == c || c == a) continue;
        int abx, aby, acx, acy;
        getVec(xs[a], ys[a], xs[b], ys[b], &abx, &aby);
        getVec(xs[a], ys[a], xs[c], ys[c], &acx, &acy);
        coss[a][b][c] = cosFromVec(abx, aby, acx, acy);
      }
  double res = 0;
  for (int a = 0; a < N; a++)
    for (int b = a + 1; b < N; b++)
      for (int c = b + 1; c < N; c++) {
        if (coss[a][b][c] > EPS && coss[b][c][a] > EPS && coss[c][a][b] > EPS) {
          res = max(res, getLengthOfEraseHall(a, b, c));
        }
      }
  for (int a = 0; a < N; a++)
    for (int b = 0; b < N; b++)
      for (int c = 0; c < N; c++) {
        if (a == b || b == c || c == a) continue;
        if (abs(coss[a][b][c]) > EPS) continue;
        for (int d = 0; d < N; d++) {
          if (a == d || b == d || c == d) continue;
          if (abs(coss[d][b][c]) <= EPS) {
            double l1 = getLen(xs[a], ys[a], xs[d], ys[d]);
            double l2 = getLen(xs[b], ys[b], xs[c], ys[c]);
            if (abs(l1 - l2) <= EPS) {
              res = max(res, getLengthOfEraseHall(a, b, c));
            }
          }
        }
      }
  if (res == 0) {
    cout << -1 << endl;
  } else {
    printf("%.4lf\n", res);
  }
}
void getVec(int ax, int ay, int bx, int by, int* vx, int* vy) {
  *vx = ax - bx;
  *vy = ay - by;
}
double getLen(double ax, double ay, double bx, double by) {
  double lx = abs(ax - bx);
  double ly = abs(ay - by);
  return sqrt(lx * lx + ly * ly);
}
double cosFromVec(int v1x, int v1y, int v2x, int v2y) {
  double n = v1x * v2x + v1y * v2y;
  double len = getLen(v1x, v1y, 0, 0) * getLen(v2x, v2y, 0, 0);
  return n / len;
}
void getCenter(double ax, double ay, double bx, double by, double cx, double cy,
               double* rx, double* ry) {
  double a = bx - ax;
  double b = by - ay;
  double c = ax * (ax - bx) + ay * (ay - by) -
             ((ax - bx) * (ax - bx) + (ay - by) * (ay - by)) / 2;
  double d = cx - ax;
  double e = cy - ay;
  double f = ax * (ax - cx) + ay * (ay - cy) -
             ((ax - cx) * (ax - cx) + (ay - cy) * (ay - cy)) / 2;
  *rx = (b * f - c * e) / (a * e - b * d);
  *ry = (a * f - c * d) / (b * d - a * e);
}
double getLengthOfEraseHall(int a, int b, int c) {
  double rx, ry;
  getCenter(xs[a], ys[a], xs[b], ys[b], xs[c], ys[c], &rx, &ry);
  double len = getLen(xs[a], ys[a], rx, ry);
  bool ok = true;
  for (int i = 0; i < N; i++) {
    double l = getLen(xs[i], ys[i], rx, ry);
    if (len > l && abs(l - len) > EPS) {
      ok = false;
    }
  }
  return ok ? len : 0;
}