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 long long maxn = 300;
const long long P0 = 100003;
const long long P1 = 100019;
const long long P2 = 100043;
struct POINT {
  long long x, y;
  POINT(long long x = 0, long long y = 0) {
    this->x = x;
    this->y = y;
  }
  POINT operator+(POINT B) { return POINT(x + B.x, y + B.y); }
  POINT operator-(POINT B) { return POINT(x - B.x, y - B.y); }
  long long hash() { return (long long)(x + 10000) * 1e5 + (y + 10000); }
};
POINT a[maxn], A, B, C;
long long n, i, j, p, q;
long long x, y, z;
double ans = -1, dx, dy;
bool h0[500000] = {0}, h1[500000] = {0}, h2[500000] = {0};
long long sqr(long long x) { return (long long)x * x; }
long long dis_2(POINT A, POINT B) { return sqr(A.x - B.x) + sqr(A.y - B.y); }
void push(POINT A) {
  long long x = A.hash();
  h0[x % P0] = h1[x % P1] = h2[x % P2] = 1;
}
bool appear(POINT A) {
  long long x = A.hash();
  return h0[x % P0] && h1[x % P1] && h2[x % P2];
}
long long det(long long a00, long long a01, long long a10, long long a11,
              long long a20, long long a21) {
  return (long long)a00 * a11 * 1 + (long long)a01 * 1 * a20 +
         (long long)1 * a10 * a21 - (long long)a00 * 1 * a21 -
         (long long)a01 * a10 * 1 - (long long)1 * a11 * a20;
}
bool kill() {
  for (long long q = 1; q <= n; q++)
    if ((long long)z * (sqr(a[q].x) + sqr(a[q].y) - sqr(A.x) - sqr(A.y)) <
        (long long)2 * x * (a[q].x - A.x) + (long long)2 * y * (a[q].y - A.y))
      return 1;
  return 0;
}
int main() {
  scanf("%lld", &n);
  for (i = 1; i <= n; i++) scanf("%lld%lld", &a[i].x, &a[i].y), push(a[i]);
  for (i = 1; i <= n; i++)
    for (j = i + 1; j <= n; j++)
      for (p = j + 1; p <= n; p++) {
        A = a[i], B = a[j], C = a[p];
        x = dis_2(A, B);
        y = dis_2(B, C);
        z = dis_2(C, A);
        if (x > y + z || y > x + z || z > x + y)
          continue;
        else if ((x == y + z && !appear(A + B - C)) ||
                 (y == x + z && !appear(B + C - A)) ||
                 (z == x + y && !appear(C + A - B)))
          continue;
        x = det(sqr(A.x) + sqr(A.y), A.y, sqr(B.x) + sqr(B.y), B.y,
                sqr(C.x) + sqr(C.y), C.y);
        y = det(A.x, sqr(A.x) + sqr(A.y), B.x, sqr(B.x) + sqr(B.y), C.x,
                sqr(C.x) + sqr(C.y));
        z = (long long)2 * det(A.x, A.y, B.x, B.y, C.x, C.y);
        if (z < 0) z = -z, x = -x, y = -y;
        if (kill()) continue;
        dx = x * 1.0 / z - A.x;
        dy = y * 1.0 / z - A.y;
        ans = max(ans, sqrt(dx * dx + dy * dy));
      }
  if (ans < 0)
    printf("-1");
  else
    printf("%.7lf", ans);
  return 0;
}