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;
struct point {
  double x, y;
};
struct point a[110];
struct line {
  int flag;
  double k, b, x;
};
int n;
double ans;
const double eps = 1e-9;
point operator+(point p1, point p2) {
  return (point){p1.x + p2.x, p1.y + p2.y};
}
point operator-(point p1, point p2) {
  return (point){p1.x - p2.x, p1.y - p2.y};
}
point operator/(point p1, double k) { return (point){p1.x / k, p1.y / k}; }
double operator*(point p1, point p2) { return p1.x * p2.x + p1.y * p2.y; }
double mul(point p1, point p2) { return p1.x * p2.y - p1.y * p2.x; }
double dis(point p1, point p2) {
  return (p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y);
}
line calc_line(point p1, point p2) {
  if (fabs(p1.x - p2.x) < eps)
    return (line){2, 0, 0, p1.x};
  else
    return (line){1, (p2.y - p1.y) / (p2.x - p1.x), mul(p1, p2) / (p1.x - p2.x),
                  0};
}
line vertical(line l, point p1) {
  if (l.flag == 2)
    return (line){1, 0, p1.y, 0};
  else if (fabs(l.k) < eps)
    return (line){2, 0, 0, p1.x};
  else
    return (line){1, -1.0 / l.k, p1.y - p1.x * (-1.0 / l.k), 0};
}
point intersect(line l1, line l2) {
  if (l1.flag < l2.flag) swap(l1, l2);
  if (l1.flag == 2)
    return (point){l1.x, l2.k * l1.x + l2.b};
  else
    return (point){(l1.b - l2.b) / (l2.k - l1.k),
                   ((l2.k * l1.b) - (l1.k * l2.b)) / (l2.k - l1.k)};
}
point calc(point p1, point p2, point p3) {
  int i, j;
  line l1, l2;
  l1 = calc_line(p1, p2);
  l1 = vertical(l1, (p1 + p2) / 2);
  l2 = calc_line(p1, p3);
  l2 = vertical(l2, (p1 + p3) / 2);
  return intersect(l1, l2);
}
int main() {
  int i, j, k, p, k1, k2, flag;
  double d;
  point p1;
  scanf("%d", &n);
  for (i = 1; i <= n; i++) scanf("%lf%lf", &a[i].x, &a[i].y);
  for (i = 1; i <= n; i++)
    for (j = i + 1; j <= n; j++)
      for (k = j + 1; k <= n; k++) {
        if ((a[i] - a[j]) * (a[k] - a[j]) < eps ||
            (a[i] - a[k]) * (a[j] - a[k]) < eps ||
            (a[j] - a[i]) * (a[k] - a[i]) < eps)
          continue;
        if (fabs(mul(a[j] - a[i], a[k] - a[i])) < eps) continue;
        p1 = calc(a[i], a[j], a[k]);
        d = dis(a[i], p1);
        if (d > ans) {
          flag = 1;
          for (p = 1; p <= n; p++)
            if (p != i && p != j && p != k && dis(p1, a[p]) < d) {
              flag = 0;
              break;
            }
          if (flag) ans = d;
        }
      }
  for (i = 1; i <= n; i++)
    for (j = i + 1; j <= n; j++)
      for (k1 = 1; k1 <= n; k1++) {
        if (k1 == i || k1 == j) continue;
        if (fabs(dis(a[i], a[k1]) + dis(a[j], a[k1]) - dis(a[i], a[j])) > eps)
          continue;
        for (k2 = k1 + 1; k2 <= n; k2++) {
          if (k2 == i || k2 == j) continue;
          if (fabs(dis(a[i], a[k2]) + dis(a[j], a[k2]) - dis(a[i], a[j])) > eps)
            continue;
          if (fabs(dis(a[k1], a[k2]) - dis(a[i], a[j])) < eps) {
            d = dis(a[i], a[j]) / 4;
            if (d > ans) {
              p1 = (a[i] + a[j]) / 2;
              flag = 1;
              for (p = 1; p <= n; p++)
                if (p != i && p != j && p != k1 && p != k2 &&
                    dis(p1, a[p]) < d) {
                  flag = 0;
                  break;
                }
              if (flag) ans = d;
            }
          }
        }
      }
  if (fabs(ans) < eps)
    printf("-1\n");
  else
    printf("%.10lf\n", sqrt(ans));
  return 0;
}