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;
double ans, dis, X, Y, P, Q;
int i, j, k, A[105], B[105], l, n;
const double eps = 1e-9;
bool FLAG;
map<int, int> mp;
double sqr(double x) { return x * x; }
void work(int x, int y, int z) {
  if (B[y] == B[x] && B[y] == B[z]) {
    FLAG = false;
    return;
  }
  if (B[y] == B[z]) swap(x, z);
  double k2 = -(A[y] - A[z]) / (B[y] - B[z] + 0.0);
  double xx = (A[y] + A[z]) / 2.0, yy = (B[y] + B[z]) / 2.0;
  double b2 = yy - k2 * xx;
  xx = (A[x] + A[y]) / 2.0;
  yy = (B[x] + B[y]) / 2.0;
  if (B[x] == B[y]) {
    X = xx;
    Y = xx * k2 + b2;
    return;
  }
  double k1 = -(A[y] - A[x]) / (B[y] - B[x] + 0.0);
  double b1 = yy - k1 * xx;
  if (fabs(k1 - k2) < eps) {
    FLAG = false;
    return;
  }
  X = (b2 - b1) / (k1 - k2);
  Y = X * k2 + b2;
  return;
}
int main() {
  scanf("%d", &n);
  for (i = 1; i <= n; i++) {
    scanf("%d%d", &A[i], &B[i]);
    mp[A[i] * 20005 + B[i]] = 1;
  }
  ans = -1;
  for (i = 1; i <= n; i++)
    for (j = i + 1; j <= n; j++)
      for (k = j + 1; k <= n; k++) {
        FLAG = true;
        work(i, j, k);
        if (!FLAG) continue;
        if ((A[j] - A[i]) * (A[k] - A[i]) + (B[j] - B[i]) * (B[k] - B[i]) > 0 &&
            (A[j] - A[k]) * (A[i] - A[k]) + (B[j] - B[k]) * (B[i] - B[k]) > 0 &&
            (A[i] - A[j]) * (A[k] - A[j]) + (B[i] - B[j]) * (B[k] - B[j]) > 0) {
          FLAG = true;
          dis = sqrt(sqr(A[i] - X) + sqr(B[i] - Y));
          for (l = 1; l <= n; l++)
            if (sqrt(sqr(A[l] - X) + sqr(B[l] - Y)) + eps < dis) {
              FLAG = false;
              break;
            }
          if (FLAG) ans = max(ans, dis);
        }
        P = Q = -10001;
        if ((A[j] - A[i]) * (A[k] - A[i]) + (B[j] - B[i]) * (B[k] - B[i]) == 0)
          P = int(eps + X * 2 - A[i]), Q = int(eps + Y * 2 - B[i]);
        if ((A[j] - A[k]) * (A[i] - A[k]) + (B[j] - B[k]) * (B[i] - B[k]) == 0)
          P = int(eps + X * 2 - A[k]), Q = int(eps + Y * 2 - B[k]);
        if ((A[i] - A[j]) * (A[k] - A[j]) + (B[i] - B[j]) * (B[k] - B[j]) == 0)
          P = int(eps + X * 2 - A[j]), Q = int(eps + Y * 2 - B[j]);
        if (mp[P * 20005 + Q]) {
          FLAG = true;
          dis = sqrt(sqr(A[i] - X) + sqr(B[i] - Y));
          for (l = 1; l <= n; l++)
            if (sqrt(sqr(A[l] - X) + sqr(B[l] - Y)) + eps < dis) {
              FLAG = false;
              break;
            }
          if (FLAG) ans = max(ans, dis);
        }
      }
  if (ans < 0)
    printf("-1\n");
  else
    printf("%.10f\n", ans);
  return 0;
}