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;
int a[200][2];
int n;
double ans;
int cha(int x1, int y1, int x2, int y2) { return (x1 * y2 - x2 * y1); }
int dis(int x1, int y1, int x2, int y2) {
  return (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
}
int sq(int x, int y) { return x * x + y * y; }
double sqt(int x, int y) { return sqrt((double)sq(x, y)); }
void check(int i, int j, int k) {
  double aa, bb, cc, s, r, p;
  int ii, sa, sb, sc, px, py, b1;
  sa = sq(a[j][0] - a[k][0], a[j][1] - a[k][1]);
  sb = sq(a[i][0] - a[k][0], a[i][1] - a[k][1]);
  sc = sq(a[i][0] - a[j][0], a[i][1] - a[j][1]);
  if ((sa > sb + sc) || (sb > sa + sc) || (sc > sa + sb)) return;
  if ((sa == sb + sc) || (sb == sa + sc) || (sc == sa + sb)) {
    px = a[i][0] + a[j][0] + a[k][0];
    py = a[i][1] + a[j][1] + a[k][1];
    if (sa == sb + sc) {
      px -= 2 * a[i][0];
      py -= 2 * a[i][1];
    } else if (sb == sa + sc) {
      px -= 2 * a[j][0];
      py -= 2 * a[j][1];
    } else if (sc = sa + sb) {
      px -= 2 * a[k][0];
      py -= 2 * a[k][1];
    }
    b1 = 0;
    for (ii = 0; ii < n; ii++)
      if ((a[ii][0] == px) && (a[ii][1] == py)) {
        b1 = 1;
        break;
      }
    if (b1 == 0) return;
  }
  aa = sqt(a[j][0] - a[k][0], a[j][1] - a[k][1]);
  bb = sqt(a[i][0] - a[k][0], a[i][1] - a[k][1]);
  cc = sqt(a[i][0] - a[j][0], a[i][1] - a[j][1]);
  p = (aa + bb + cc) / 2;
  s = sqrt(p * (p - aa) * (p - bb) * (p - cc));
  r = aa * bb * cc / 4 / s;
  if (r > ans) ans = r;
}
int main() {
  int i, j, k, l, b1;
  double r;
  vector<pair<double, int> > aa1, aa2;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d%d", &a[i][0], &a[i][1]);
  }
  ans = -1;
  for (i = 0; i < n; i++)
    for (j = i + 1; j < n; j++) {
      b1 = 1;
      for (k = 0; k < n; k++)
        if ((i != k) && (j != k)) {
          if (cha(a[k][0] - a[i][0], a[k][1] - a[i][1], a[j][0] - a[i][0],
                  a[j][1] - a[i][1]) == 0) {
            if ((dis(a[i][0], a[i][1], a[j][0], a[j][1]) >
                 dis(a[i][0], a[i][1], a[k][0], a[k][1])) &&
                (dis(a[i][0], a[i][1], a[j][0], a[j][1]) >
                 dis(a[j][0], a[j][1], a[k][0], a[k][1])))
              b1 = 0;
          }
        }
      if (b1 == 0) continue;
      aa1.clear();
      for (k = 0; k < n; k++)
        if ((i != k) && (j != k)) {
          if (cha(a[k][0] - a[i][0], a[k][1] - a[i][1], a[j][0] - a[i][0],
                  a[j][1] - a[i][1]) < 0) {
            r = (sq(a[k][0] - a[i][0], a[k][1] - a[i][1]) +
                 sq(a[k][0] - a[j][0], a[k][1] - a[j][1]) -
                 sq(a[i][0] - a[j][0], a[i][1] - a[j][1])) /
                2.0 / sqt(a[k][0] - a[i][0], a[k][1] - a[i][1]) /
                sqt(a[k][0] - a[j][0], a[k][1] - a[j][1]);
            aa1.push_back(make_pair(r, k));
          }
        }
      sort(aa1.begin(), aa1.end());
      aa2.clear();
      for (k = 0; k < n; k++)
        if ((i != k) && (j != k)) {
          if (cha(a[k][0] - a[i][0], a[k][1] - a[i][1], a[j][0] - a[i][0],
                  a[j][1] - a[i][1]) > 0) {
            r = (sq(a[k][0] - a[i][0], a[k][1] - a[i][1]) +
                 sq(a[k][0] - a[j][0], a[k][1] - a[j][1]) -
                 sq(a[i][0] - a[j][0], a[i][1] - a[j][1])) /
                2.0 / sqt(a[k][0] - a[i][0], a[k][1] - a[i][1]) /
                sqt(a[k][0] - a[j][0], a[k][1] - a[j][1]);
            aa2.push_back(make_pair(r, k));
          }
        }
      sort(aa2.begin(), aa2.end());
      if (aa1.size() > 0) {
        k = aa1[0].second;
        b1 = 1;
        if ((aa2.size() == 0) || (aa1[0].first + aa2[0].first > -1e-9)) {
          check(i, j, k);
        }
      }
      if (aa2.size() > 0) {
        k = aa2[0].second;
        b1 = 1;
        if ((aa1.size() == 0) || (aa1[0].first + aa2[0].first > -1e-9)) {
          check(i, j, k);
        }
      }
    }
  if (ans < -0.5)
    printf("-1\n");
  else
    printf("%.6lf\n", ans);
}