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 = 100;
template <class T>
inline void relax(T &a, const T &b) {
  if (b > a) a = b;
}
inline int sgn(const double &a) {
  const double Eps = 1e-5;
  if (a < -Eps)
    return -1;
  else if (a > Eps)
    return 1;
  else
    return 0;
}
inline int dblcmp(const double &a, const double &b) { return sgn(a - b); }
struct point {
  double x, y;
};
inline double sqr(double x) { return x * x; }
inline double norm(const point &p) { return sqr(p.x) + sqr(p.y); }
inline double dist2(const point &a, const point &b) {
  return sqr(a.x - b.x) + sqr(a.y - b.y);
}
inline double dot(const point &a, const point &o, const point &b) {
  return (a.x - o.x) * (b.x - o.x) + (a.y - o.y) * (b.y - o.y);
}
inline double cross(const point &a, const point &o, const point &b) {
  return (a.x - o.x) * (b.y - o.y) - (a.y - o.y) * (b.x - o.x);
}
int n;
point po[MaxN];
inline double getR(const int &pa, const int &pb, const int &pc) {
  point a = po[pa], b = po[pb], c = po[pc];
  if (sgn(dot(a, b, c)) < 0 || sgn(dot(c, a, b)) < 0 || sgn(dot(b, c, a)) < 0)
    return 0;
  double e[2][3] = {{2 * (a.x - c.x), 2 * (a.y - c.y), norm(a) - norm(c)},
                    {2 * (b.x - c.x), 2 * (b.y - c.y), norm(b) - norm(c)}};
  double det = e[0][0] * e[1][1] - e[0][1] * e[1][0];
  if (sgn(det) == 0) return 0;
  point o;
  o.x = (e[0][2] * e[1][1] - e[0][1] * e[1][2]) / det;
  o.y = (e[0][0] * e[1][2] - e[0][2] * e[1][0]) / det;
  double r2 = dist2(o, a);
  bool ok = true;
  point d;
  if (sgn(cross(a, o, b)) == 0) {
    d = c;
    ok = false;
  }
  if (sgn(cross(b, o, c)) == 0) {
    d = a;
    ok = false;
  }
  if (sgn(cross(c, o, a)) == 0) {
    d = b;
    ok = false;
  }
  for (int i = 0; i < n; i++)
    if (i != pa && i != pb && i != pc) {
      switch (dblcmp(dist2(po[i], o), r2)) {
        case -1:
          return 0;
        case 0:
          if (!ok && sgn(cross(po[i], o, d)) == 0) ok = true;
          break;
        case 1:
          break;
      }
    }
  if (!ok) return 0;
  return sqrt(r2);
}
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) scanf("%lf %lf", &po[i].x, &po[i].y);
  double res = 0;
  for (int i = 0; i < n; i++)
    for (int j = i + 1; j < n; j++)
      for (int k = j + 1; k < n; k++) relax(res, getR(i, j, k));
  if (res == 0)
    printf("-1\n");
  else
    printf("%.10f\n", res);
  return 0;
}