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;
int n, i, j, k, l;
int x[105], y[105], dist[105][105];
double ans, a, b, a1, a2, b1, b2, c1, c2;
int cal(int a, int b, int c) {
  return (x[b] - x[a]) * (x[c] - x[a]) + (y[b] - y[a]) * (y[c] - y[a]);
}
void check(double X, double Y, double Min) {
  int i;
  double tmp;
  for (i = 1; i <= n; ++i) {
    tmp = sqrt((x[i] - X) * (x[i] - X) + (y[i] - Y) * (y[i] - Y));
    if (tmp + 0.000001 < Min) return;
  }
  if (Min > ans) ans = Min;
}
int main() {
  scanf("%d", &n);
  for (i = 1; i <= n; ++i) scanf("%d%d", &x[i], &y[i]);
  for (i = 1; i <= n; ++i)
    for (j = 1; j <= n; ++j)
      dist[i][j] =
          (x[i] - x[j]) * (x[i] - x[j]) + (y[i] - y[j]) * (y[i] - y[j]);
  for (i = 1; i <= n; ++i)
    for (j = i + 1; j <= n; ++j)
      for (k = j + 1; k <= n; ++k)
        if (cal(i, j, k) > 0 && cal(j, i, k) > 0 && cal(k, i, j) > 0) {
          a1 = -2 * (x[j] - x[i]);
          b1 = -2 * (y[j] - y[i]);
          c1 = x[i] * x[i] - x[j] * x[j] + y[i] * y[i] - y[j] * y[j];
          a2 = -2 * (x[k] - x[i]);
          b2 = -2 * (y[k] - y[i]);
          c2 = x[i] * x[i] - x[k] * x[k] + y[i] * y[i] - y[k] * y[k];
          if (x[i] == x[j]) swap(a1, a2), swap(b1, b2), swap(c1, c2);
          b2 -= b1 * a2 / a1;
          c2 -= c1 * a2 / a1;
          a2 = 0;
          b = c2 / b2;
          c1 -= b * b1;
          b1 = 0;
          a = c1 / a1;
          check(a, b, sqrt((x[i] - a) * (x[i] - a) + (y[i] - b) * (y[i] - b)));
        }
  for (i = 1; i <= n; ++i)
    for (j = 1; j <= n; ++j)
      if (i != j)
        for (k = 1; k <= n; ++k)
          if (i != k && j != k)
            if (dist[i][j] == dist[i][k] && dist[j][k] == 2 * dist[i][j])
              for (l = 1; l <= n; ++l)
                if (dist[j][l] == dist[i][j] && dist[k][l] == dist[i][j] &&
                    dist[i][l] == 2 * dist[i][j])
                  check(0.5 * (x[i] + x[l]), 0.5 * (y[i] + y[l]),
                        sqrt(2 * dist[i][j]) / 2);
  if (ans < 0.0001)
    printf("-1\n");
  else
    printf("%.20lf\n", ans);
}