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 pt {
  double x, y;
  pt(double _x = 0, double _y = 0) : x(_x), y(_y) {}
};
pt operator+(const pt &a, const pt &b) { return pt(a.x + b.x, a.y + b.y); }
pt operator-(const pt &a, const pt &b) { return pt(a.x - b.x, a.y - b.y); }
pt operator*(const pt &o, const double &v) { return pt(o.x * v, o.y * v); }
double det(const pt &a, const pt &b) { return a.x * b.y - a.y * b.x; }
double dot(const pt &a, const pt &b) { return a.x * b.x + a.y * b.y; }
typedef pair<pt, pt> ln;
pt getInter(const ln &p, const ln &q) {
  return p.first +
         p.second * (det(q.first + q.second - p.first, q.first - p.first) /
                     det(q.second, p.second));
}
ln getCen(const pt &a, const pt &b) {
  return ln((a + b) * 0.5, pt(a.y - b.y, b.x - a.x));
}
double len(const pt &a) { return a.x * a.x + a.y * a.y; }
enum { MAXN = 105 };
pt d[MAXN];
const double eps = 1e-8;
const double INF = 1e50;
int sgn(const double &x) { return x > eps ? 1 : (x < -eps ? -1 : 0); }
int main() {
  int n;
  scanf("%d", &n);
  int x, y;
  for (int i = 0; i < n; i++) {
    scanf("%d%d", &x, &y);
    d[i] = pt(x, y);
  }
  double ans = -1;
  for (int i = 0; i < n; i++)
    for (int j = i + 1; j < n; j++)
      for (int k = j + 1; k < n; k++)
        if (dot(d[j] - d[i], d[k] - d[i]) > 0 &&
            dot(d[i] - d[k], d[j] - d[k]) > 0 &&
            dot(d[i] - d[j], d[k] - d[j]) > 0) {
          pt x = getInter(getCen(d[i], d[j]), getCen(d[i], d[k]));
          double r = len(x - d[i]);
          for (int l = 0; l < n; l++)
            if (l != i && l != j && l != k && sgn(len(x - d[l]) - r) < 0) {
              r = -1;
              break;
            }
          ans = max(ans, r);
        }
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++)
      if (i != j)
        for (int k = 0; k < n; k++)
          if (k != i && k != j && dot(d[j] - d[i], d[k] - d[i]) == 0) {
            pt p = d[j] + d[k] - d[i];
            bool flag = false;
            for (int l = 0; l < n; l++)
              if (p.x == d[l].x && p.y == d[l].y) {
                flag = true;
                break;
              }
            if (flag) {
              pt x = (d[j] + d[k]) * 0.5;
              double r = len(x - d[i]);
              for (int l = 0; l < n; l++)
                if (l != i && l != j && l != k && sgn(len(x - d[l]) - r) < 0) {
                  r = -1;
                  break;
                }
              ans = max(ans, r);
            }
          }
  if (ans < 0)
    puts("-1");
  else
    printf("%.10f\n", sqrt(ans));
  return 0;
}