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 N = 1e5 + 10;
const double EPS = 1e-10;
struct Point {
  long long x, y;
} p[N];
map<pair<long long, long long>, int> m;
int n;
double dis(Point a, Point b) {
  return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
}
long long dis2(Point a, Point b) {
  return (a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y);
}
double check(double x, double y) {
  double ans = 2e10;
  for (int i = 1; i <= n; ++i)
    ans = min(ans,
              sqrt((x - p[i].x) * (x - p[i].x) + (y - p[i].y) * (y - p[i].y)));
  return ans;
}
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    scanf("%lld%lld", &p[i].x, &p[i].y);
    m[make_pair(p[i].x, p[i].y)] = 1;
  }
  double ans = -1;
  for (int i = 1; i <= n; ++i) {
    for (int j = i + 1; j <= n; ++j) {
      for (int k = j + 1; k <= n; ++k) {
        double a = dis(p[i], p[j]);
        double b = dis(p[i], p[k]);
        double c = dis(p[j], p[k]);
        double res, x, y;
        int flag = 1;
        if (abs(a - b) < EPS && abs(c * c - a * a - b * b) < EPS &&
            m[make_pair(p[j].x + p[k].x - p[i].x, p[j].y + p[k].y - p[i].y)])
          x = (p[j].x + p[k].x) / 2.0, y = (p[j].y + p[k].y) / 2.0;
        else if (abs(a - c) < EPS && abs(b * b - a * a - c * c) < EPS &&
                 m[make_pair(p[i].x + p[k].x - p[j].x,
                             p[i].y + p[k].y - p[j].y)])
          x = (p[i].x + p[k].x) / 2.0, y = (p[i].y + p[k].y) / 2.0;
        else if (abs(b - c) < EPS && abs(a * a - b * b - c * c) < EPS &&
                 m[make_pair(p[j].x + p[i].x - p[k].x,
                             p[j].y + p[i].y - p[k].y)])
          x = (p[j].x + p[i].x) / 2.0, y = (p[j].y + p[i].y) / 2.0;
        else
          flag = 0;
        if (flag) {
          res = check(x, y);
          if (abs(res - sqrt((x - p[i].x) * (x - p[i].x) +
                             (y - p[i].y) * (y - p[i].y))) < EPS ||
              res - sqrt((x - p[i].x) * (x - p[i].x) +
                         (y - p[i].y) * (y - p[i].y)) >
                  EPS)
            ans = max(ans, sqrt((x - p[i].x) * (x - p[i].x) +
                                (y - p[i].y) * (y - p[i].y)));
        }
        if (abs(a + b - c) < EPS || c - a - b > EPS || abs(a + c - b) < EPS ||
            b - a - c > EPS || abs(b + c - a) < EPS || a - b - c > EPS)
          continue;
        if (dis2(p[i], p[j]) + dis2(p[i], p[k]) <= dis2(p[j], p[k]) ||
            dis2(p[i], p[j]) + dis2(p[j], p[k]) <= dis2(p[i], p[k]) ||
            dis2(p[j], p[k]) + dis2(p[i], p[k]) <= dis2(p[i], p[j]))
          continue;
        double x1 = p[i].x, x2 = p[j].x, x3 = p[k].x;
        double y1 = p[i].y, y2 = p[j].y, y3 = p[k].y;
        x = ((x1 * x1 - x2 * x2 + y1 * y1 - y2 * y2) * (y1 - y3) -
             (x1 * x1 - x3 * x3 + y1 * y1 - y3 * y3) * (y1 - y2)) /
            (2 * (y1 - y3) * (x1 - x2) - 2 * (y1 - y2) * (x1 - x3));
        y = ((x1 * x1 - x2 * x2 + y1 * y1 - y2 * y2) * (x1 - x3) -
             (x1 * x1 - x3 * x3 + y1 * y1 - y3 * y3) * (x1 - x2)) /
            (2 * (y1 - y2) * (x1 - x3) - 2 * (y1 - y3) * (x1 - x2));
        res = check(x, y);
        if (abs(res - sqrt((x - p[i].x) * (x - p[i].x) +
                           (y - p[i].y) * (y - p[i].y))) < EPS ||
            res - sqrt((x - p[i].x) * (x - p[i].x) +
                       (y - p[i].y) * (y - p[i].y)) >
                EPS)
          ans = max(ans, sqrt((x - p[i].x) * (x - p[i].x) +
                              (y - p[i].y) * (y - p[i].y)));
      }
    }
  }
  if (ans < 0)
    puts("-1");
  else
    printf("%.6lf\n", ans);
  return 0;
}