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;
map<int, bool> exi;
struct Point {
  double x, y;
};
const int MAXN = 105;
Point a[MAXN];
int n;
double ans = -1;
inline int d2(Point p, Point q) {
  return int((p.x - q.x) * (p.x - q.x) + (p.y - q.y) * (p.y - q.y) + 0.5);
}
inline double dis(Point p, Point q) {
  return sqrt((p.x - q.x) * (p.x - q.x) + (p.y - q.y) * (p.y - q.y));
}
void work(int p, int q, int r) {
  int c1, c2, c3;
  c1 = d2(a[p], a[q]), c2 = d2(a[p], a[r]), c3 = d2(a[r], a[q]);
  if (c1 + c2 >= c3 && c2 + c3 >= c1 && c3 + c1 >= c2 ||
      c1 + c2 > c3 && c2 + c3 > c1 && c3 + c1 > c2) {
    if (c1 + c2 == c3 || c2 + c3 == c1 || c3 + c1 == c2) {
      Point w;
      if (c1 + c2 == c3) {
        w.x = a[p].x + a[q].x - a[r].x;
        w.y = a[p].y + a[q].y - a[r].y;
      } else if (c1 + c3 == c2) {
        w.x = a[p].x + a[r].x - a[q].x;
        w.y = a[p].y + a[r].y - a[q].y;
      } else {
        w.x = a[q].x + a[r].x - a[p].x;
        w.y = a[q].y + a[r].y - a[p].y;
      }
      if (!exi.count(int(1e9 + 1e7 + w.x * 50000 + w.y + 0.5))) return;
    }
    Point o;
    double g1 = 2 * (a[q].x - a[p].x), g2 = 2 * (a[q].y - a[p].y),
           g3 = a[q].x * a[q].x + a[q].y * a[q].y - a[p].x * a[p].x -
                a[p].y * a[p].y;
    double h1 = 2 * (a[r].x - a[p].x), h2 = 2 * (a[r].y - a[p].y),
           h3 = a[r].x * a[r].x + a[r].y * a[r].y - a[p].x * a[p].x -
                a[p].y * a[p].y;
    if (fabs(g1 * h2 - g2 * h1) < 1e-9) return;
    if (fabs(g1) < 1e-5) {
      o.y = g3 / g2;
      o.x = (h3 - h2 * o.y) / h1;
    } else if (fabs(g2) < 1e-5) {
      o.x = g3 / g1;
      o.y = (h3 - h1 * o.x) / h2;
    } else {
      if (fabs(h1) > 1e-5) {
        double ra = h1 / g1;
        g1 *= ra, g2 *= ra, g3 *= ra;
        g1 -= h1, g2 -= h2, g3 -= h3;
        o.y = g3 / g2;
        o.x = (h3 - h2 * o.y) / h1;
      } else {
        double ra = h2 / g2;
        g1 *= ra, g2 *= ra, g3 *= ra;
        g1 -= h1, g2 -= h2, g3 -= h3;
        o.x = g3 / g1;
        o.y = (h3 - h1 * o.x) / h2;
      }
    }
    if (dis(a[p], o) < ans) return;
    double u = dis(a[p], o);
    for (int i = 1; i <= n; i++)
      if (i != p && i != q && i != r) {
        if (dis(a[i], o) < u - (1e-3)) return;
      }
    ans = u;
  }
}
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%lf%lf", &a[i].x, &a[i].y);
    exi[int(1e9 + 1e7 + a[i].x * 50000 + a[i].y + 0.5)] = true;
  }
  for (int i = 1; i <= n; i++)
    for (int j = i + 1; j <= n; j++)
      for (int k = j + 1; k <= n; k++) {
        work(i, j, k);
      }
  if (ans < -0.5)
    printf("-1\n");
  else
    printf("%.10lf\n", ans);
  return 0;
}