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 int maxn = 105;
const double eps = 1e-8;
set<pair<int, int> > s;
struct point {
  double x, y;
  point(double _x = 0, double _y = 0) {
    x = _x;
    y = _y;
  };
  double norm() { return sqrt(x * x + y * y); }
} d[maxn];
int n;
int dcmp(double x) {
  if (x > eps) return 1;
  if (x < -eps) return -1;
  return 0;
}
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);
}
double dot(const point a, const point b) { return a.x * b.x + a.y * b.y; }
bool checkdis(const point a, const double dis) {
  for (int i = 1; i <= n; ++i)
    if (dcmp((d[i] - a).norm() - dis) == -1) return 0;
  return 1;
}
bool checktri(const point a, const point b, const point c) {
  double d1 = dot(b - a, c - a), d2 = dot(c - b, a - b), d3 = dot(a - c, b - c);
  if (dcmp(d1) > 0 && dcmp(d2) > 0 && dcmp(d3) > 0) return 1;
  point p;
  if (dcmp(d1) == 0) {
    p = b + c - a;
    return s.count(make_pair(p.x + eps, p.y + eps));
  }
  if (dcmp(d2) == 0) {
    p = c + a - b;
    return s.count(make_pair(p.x + eps, p.y + eps));
  }
  if (dcmp(d3) == 0) {
    p = a + b - c;
    return s.count(make_pair(p.x + eps, p.y + eps));
  }
  return 0;
}
void getpoint(const point a, const point b, const point c, point &p) {
  double a1 = b.x - a.x, b1 = b.y - a.y, c1 = (a1 * a1 + b1 * b1) / 2;
  double a2 = c.x - a.x, b2 = c.y - a.y, c2 = (a2 * a2 + b2 * b2) / 2;
  double d = a1 * b2 - a2 * b1;
  p.x = a.x + (c1 * b2 - c2 * b1) / d;
  p.y = a.y + (a1 * c2 - a2 * c1) / d;
}
int main() {
  int i, j, k, x, y;
  double ans = -1.0, dis;
  point p;
  scanf("%d", &n);
  s.clear();
  for (i = 1; i <= n; ++i) {
    scanf("%d%d", &x, &y);
    d[i] = point(x, y);
    s.insert(make_pair(x, y));
  }
  for (i = 1; i <= n; ++i)
    for (j = i + 1; j <= n; ++j)
      for (k = j + 1; k <= n; ++k)
        if (checktri(d[i], d[j], d[k])) {
          getpoint(d[i], d[j], d[k], p);
          dis = (d[i] - p).norm();
          if (checkdis(p, dis)) ans = max(ans, dis);
        }
  if (dcmp(ans) < 0)
    puts("-1");
  else
    printf("%.6lf\n", ans);
  return 0;
}