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 double eps = 1e-8;
struct point {
  double x, y;
  point(double _x = 0, double _y = 0) : x(_x), y(_y) {}
};
struct line {
  point a, b;
};
inline long long sqr(long long a) { return a * a; }
inline int sgn(double x) { return x < -eps ? -1 : x > eps; }
struct Point {
  long long x, y;
  Point(long long _x = 0, long long _y = 0) : x(_x), y(_y) {}
  Point operator-(const Point& rhs) const {
    return Point(x - rhs.x, y - rhs.y);
  }
  void input() { cin >> x >> y; }
  long long len2() { return sqr(x) + sqr(y); }
  long long dist(Point rhs) { return (*this - rhs).len2(); }
  point topoint() { return point(x, y); }
};
const int maxn = 101;
Point p[maxn];
point tp[maxn];
int n;
double dist(point p1, point p2) {
  return sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));
}
double xmult(point p1, point p2, point p0) {
  return (p1.x - p0.x) * (p2.y - p0.y) - (p2.x - p0.x) * (p1.y - p0.y);
}
int dots_inline(point p1, point p2, point p3) {
  return sgn(xmult(p1, p2, p3)) == 0;
}
point intersection(line u, line v) {
  point ret = u.a;
  double t =
      ((u.a.x - v.a.x) * (v.a.y - v.b.y) - (u.a.y - v.a.y) * (v.a.x - v.b.x)) /
      ((u.a.x - u.b.x) * (v.a.y - v.b.y) - (u.a.y - u.b.y) * (v.a.x - v.b.x));
  ret.x += (u.b.x - u.a.x) * t;
  ret.y += (u.b.y - u.a.y) * t;
  return ret;
}
point circumcenter(point a, point b, point c) {
  line u, v;
  u.a.x = (a.x + b.x) / 2;
  u.a.y = (a.y + b.y) / 2;
  u.b.x = u.a.x - a.y + b.y;
  u.b.y = u.a.y + a.x - b.x;
  v.a.x = (a.x + c.x) / 2;
  v.a.y = (a.y + c.y) / 2;
  v.b.x = v.a.x - a.y + c.y;
  v.b.y = v.a.y + a.x - c.x;
  return intersection(u, v);
}
double ans = -1.0;
void updata(point c, double t) {
  for (int i = 0; i < n; ++i) {
    if (sgn(dist(c, tp[i]) - t) == -1) return;
  }
  ans = max(ans, t);
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) {
    p[i].input();
    tp[i] = p[i].topoint();
  }
  for (int i = 0; i < n; ++i) {
    for (int j = i + 1; j < n; ++j) {
      int cnt = 0;
      long long C2 = p[i].dist(p[j]);
      for (int k = 0; k < n; ++k) {
        if (k == i && k == j) continue;
        if (dots_inline(tp[i], tp[j], tp[k])) continue;
        long long A2 = p[i].dist(p[k]);
        long long B2 = p[j].dist(p[k]);
        if (A2 + B2 > C2 && A2 + C2 > B2 && B2 + C2 > A2) {
          point tmp = circumcenter(tp[i], tp[j], tp[k]);
          double t = dist(tmp, tp[k]);
          updata(tmp, t);
        }
        if (A2 + B2 == C2) ++cnt;
      }
      if (cnt >= 2) {
        point tmp;
        tmp.x = (tp[i].x + tp[j].x) / 2;
        tmp.y = (tp[i].y + tp[j].y) / 2;
        double t = dist(tmp, tp[j]);
        updata(tmp, t);
      }
    }
  }
  printf("%.12lf\n", ans);
  return 0;
}