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>
int n;
int loc[110][2];
double hl[1001000][3];
int hn;
double ans;
bool trt(int i, int j, int k) {
  int da, db, dc, l;
  da = (loc[i][0] - loc[j][0]) * (loc[i][0] - loc[j][0]) +
       (loc[i][1] - loc[j][1]) * (loc[i][1] - loc[j][1]);
  db = (loc[k][0] - loc[j][0]) * (loc[k][0] - loc[j][0]) +
       (loc[k][1] - loc[j][1]) * (loc[k][1] - loc[j][1]);
  dc = (loc[i][0] - loc[k][0]) * (loc[i][0] - loc[k][0]) +
       (loc[i][1] - loc[k][1]) * (loc[i][1] - loc[k][1]);
  if (da > db + dc) return 0;
  if (db > da + dc) return 0;
  if (dc > db + da) return 0;
  if (da == db + dc) {
    for (l = 0; l < n; l++) {
      if (loc[l][0] == loc[i][0] + loc[j][0] - loc[k][0] &&
          loc[l][1] == loc[i][1] + loc[j][1] - loc[k][1])
        break;
    }
    if (l == n) return 0;
  }
  if (db == da + dc) {
    for (l = 0; l < n; l++) {
      if (loc[l][0] == loc[k][0] + loc[j][0] - loc[i][0] &&
          loc[l][1] == loc[k][1] + loc[j][1] - loc[i][1])
        break;
    }
    if (l == n) return 0;
  }
  if (dc == db + da) {
    for (l = 0; l < n; l++) {
      if (loc[l][0] == loc[i][0] + loc[k][0] - loc[j][0] &&
          loc[l][1] == loc[i][1] + loc[k][1] - loc[j][1])
        break;
    }
    if (l == n) return 0;
  }
  return 1;
}
void calchl(int i, int j, int k) {
  double a, b, c;
  a = loc[i][0] * loc[i][0] + loc[i][1] * loc[i][1];
  b = loc[j][0] * loc[j][0] + loc[j][1] * loc[j][1];
  c = loc[k][0] * loc[k][0] + loc[k][1] * loc[k][1];
  hl[hn][0] = (c - b) * loc[i][1] + (a - c) * loc[j][1] + (b - a) * loc[k][1];
  hl[hn][0] /= 2 * (loc[i][0] * loc[j][1] - loc[j][0] * loc[i][1] +
                    loc[j][0] * loc[k][1] - loc[k][0] * loc[j][1] +
                    loc[k][0] * loc[i][1] - loc[i][0] * loc[k][1]);
  hl[hn][1] = (c - b) * loc[i][0] + (a - c) * loc[j][0] + (b - a) * loc[k][0];
  hl[hn][1] /= 2 * (loc[i][1] * loc[j][0] - loc[j][1] * loc[i][0] +
                    loc[j][1] * loc[k][0] - loc[k][1] * loc[j][0] +
                    loc[k][1] * loc[i][0] - loc[i][1] * loc[k][0]);
  hl[hn][2] = sqrt((hl[hn][0] - loc[i][0]) * (hl[hn][0] - loc[i][0]) +
                   (hl[hn][1] - loc[i][1]) * (hl[hn][1] - loc[i][1]));
}
int main() {
  int i, j, k;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d%d", &loc[i][0], &loc[i][1]);
  }
  for (i = 0; i < n; i++) {
    for (j = 0; j < i; j++) {
      for (k = 0; k < j; k++) {
        if (trt(i, j, k)) {
          calchl(i, j, k);
          hn++;
        }
      }
    }
  }
  ans = -1;
  for (i = 0; i < hn; i++) {
    for (j = 0; j < n; j++) {
      if (hl[i][2] > sqrt((loc[j][0] - hl[i][0]) * (loc[j][0] - hl[i][0]) +
                          (loc[j][1] - hl[i][1]) * (loc[j][1] - hl[i][1])) *
                         1.0000001) {
        break;
      }
    }
    if (j == n && hl[i][2] > ans) ans = hl[i][2];
  }
  if (ans < 0.5)
    printf("-1");
  else
    printf("%.30lf", ans);
}