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 {
  int x, y;
  point() {}
  point(int x, int y) : x(x), y(y) {}
  point rotate() { return point(-y, x); }
};
set<pair<int, int> > s;
point a[1000];
point operator+(const point &a, const point &b) {
  return point(a.x + b.x, a.y + b.y);
}
point operator-(const point &a, const point &b) {
  return point(a.x - b.x, a.y - b.y);
}
point operator/(const point &a, int b) { return point(a.x / b, a.y / b); }
int operator*(const point &a, const point &b) { return a.x * b.y - a.y * b.x; }
void intersect(const point &s1a, const point &s1b, const point &s2a,
               const point &s2b, double &x, double &y) {
  double d1 = (s1b - s1a) * (s2a - s1a);
  double d2 = (s1b - s1a) * (s2b - s1a);
  x = double(s2a.x * d2 - s2b.x * d1) / (d2 - d1);
  y = double(s2a.y * d2 - s2b.y * d1) / (d2 - d1);
}
int sqrdis(point a, point b) {
  return (a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y);
}
int checkit(int n, double t, double x, double y) {
  for (int i = (1); i <= (n); i++) {
    double dis =
        sqrt((a[i].x - x) * (a[i].x - x) + (a[i].y - y) * (a[i].y - y));
    if (dis + 1e-8 < t) return 0;
  }
  return 1;
}
void lemon() {
  int n;
  scanf("%d", &n);
  for (int i = (1); i <= (n); i++) {
    scanf("%d%d", &a[i].x, &a[i].y);
    a[i].x *= 2, a[i].y *= 2;
    s.insert(make_pair(a[i].x, a[i].y));
  }
  double final = -1;
  for (int i = (1); i <= (n); i++)
    for (int j = (i + 1); j <= (n); j++)
      for (int k = (j + 1); k <= (n); k++) {
        if (sqrdis(a[i], a[j]) == 0 || sqrdis(a[i], a[k]) == 0 ||
            sqrdis(a[j], a[k]) == 0)
          continue;
        int z[10];
        z[1] = sqrdis(a[i], a[j]);
        z[2] = sqrdis(a[i], a[k]);
        z[3] = sqrdis(a[j], a[k]);
        sort(z + 1, z + 4);
        if (z[1] + z[2] > z[3]) {
          point s1a = (a[i] + a[j]) / 2;
          point s1b = s1a + (a[j] - a[i]).rotate();
          point s2a = (a[i] + a[k]) / 2;
          point s2b = s2a + (a[k] - a[i]).rotate();
          double x, y;
          intersect(s1a, s1b, s2a, s2b, x, y);
          double t =
              sqrt((a[i].x - x) * (a[i].x - x) + (a[i].y - y) * (a[i].y - y));
          if (checkit(n, t, x, y)) final = max(final, t);
        } else if (z[1] + z[2] == z[3]) {
          point p1, p2, p3;
          if (z[3] == sqrdis(a[i], a[j])) p1 = a[i], p2 = a[j], p3 = a[k];
          if (z[3] == sqrdis(a[i], a[k])) p1 = a[i], p2 = a[k], p3 = a[j];
          if (z[3] == sqrdis(a[j], a[k])) p1 = a[j], p2 = a[k], p3 = a[i];
          point p4 = p1 + p2 - p3;
          if (s.count(make_pair(p4.x, p4.y))) {
            point mid = (p1 + p2) / 2;
            double t = sqrt(sqrdis(mid, p1));
            if (checkit(n, t, mid.x, mid.y)) final = max(final, t);
          }
        }
      }
  if (final < 0 || final > 1e100)
    printf("-1\n");
  else
    printf("%.16lf\n", final / 2);
}
int main() {
  ios::sync_with_stdio(true);
  lemon();
  return 0;
}