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 double eps = 1e-8;
int i, j, k, l, n, m, K[120], tmp, flag, bo;
struct point {
  int x, y;
} a[120];
struct ppp {
  double x, y;
} O;
double ans;
int dot(point &a, point &b, point &c, point &d) {
  return (b.x - a.x) * (d.x - c.x) + (b.y - a.y) * (d.y - c.y);
}
double dist(ppp &a, point &b) {
  return sqrt((b.x - a.x) * (b.x - a.x) + (b.y - a.y) * (b.y - a.y));
}
void calc(double a, double b, double c, double d, double e, double f) {
  O.y = (a * f - d * c) / (b * d - e * a);
  O.x = (b * f - c * e) / (a * e - b * d);
}
bool Find(int x, int y) {
  for (int i = 1; i <= n; ++i)
    if (a[i].x == x && a[i].y == y) return 1;
  return 0;
}
int main() {
  scanf("%d", &n);
  for (i = 1; i <= n; ++i) scanf("%d%d", &a[i].x, &a[i].y);
  for (i = 1; i <= n; ++i) K[i] = a[i].x * a[i].x + a[i].y * a[i].y;
  for (i = 1; i <= n; ++i)
    for (j = i + 1; j <= n; ++j)
      for (k = j + 1; k <= n; ++k) {
        tmp = dot(a[i], a[j], a[i], a[k]);
        bo = 0;
        if (tmp < 0 || tmp == 0 && !Find(a[j].x + a[k].x - a[i].x,
                                         a[j].y + a[k].y - a[i].y))
          continue;
        if (tmp == 0)
          bo = 1, O.x = (a[j].x + a[k].x) / 2.0, O.y = (a[j].y + a[k].y) / 2.0;
        tmp = dot(a[j], a[i], a[j], a[k]);
        if (tmp < 0 || tmp == 0 && !Find(a[i].x + a[k].x - a[j].x,
                                         a[i].y + a[k].y - a[j].y))
          continue;
        if (tmp == 0)
          bo = 1, O.x = (a[i].x + a[k].x) / 2.0, O.y = (a[i].y + a[k].y) / 2.0;
        tmp = dot(a[k], a[i], a[k], a[j]);
        if (tmp < 0 || tmp == 0 && !Find(a[i].x + a[j].x - a[k].x,
                                         a[i].y + a[j].y - a[k].y))
          continue;
        if (tmp == 0)
          bo = 1, O.x = (a[i].x + a[j].x) / 2.0, O.y = (a[i].y + a[j].y) / 2.0;
        if (!bo)
          calc(a[j].x - a[i].x, a[j].y - a[i].y, (K[i] - K[j]) / 2.0,
               a[k].x - a[i].x, a[k].y - a[i].y, (K[i] - K[k]) / 2.0);
        double R = dist(O, a[i]);
        for (l = 1; l <= n; ++l)
          if (l != i && l != j && l != k && dist(O, a[l]) + eps < R) break;
        if (l <= n) continue;
        ans = max(ans, R);
        flag = 1;
      }
  if (!flag)
    printf("-1\n");
  else
    printf("%.6lf\n", ans);
}