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 poi {
  double x, y;
} a[105];
struct line {
  poi a, b;
};
int n;
double ans;
long long dis[4];
double sqr(double x) { return x * x; }
long long getd(int x, int y) {
  return sqr(a[x].x - a[y].x) + sqr(a[x].y - a[y].y);
}
long long gets(int i, int j, int k) {
  long long x1 = a[j].x - a[i].x;
  long long y1 = a[j].y - a[i].y;
  long long x2 = a[k].x - a[i].x;
  long long y2 = a[k].y - a[i].y;
  return abs(x1 * y2 - x2 * y1);
}
int getType(int x, int y, int z) {
  dis[1] = getd(x, y);
  dis[2] = getd(y, z);
  dis[3] = getd(z, x);
  sort(dis + 1, dis + 4);
  if (dis[1] + dis[2] < dis[3]) return 3;
  if (dis[1] + dis[2] == dis[3]) return 2;
  return 1;
}
poi intersection(line u, line v) {
  poi 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;
}
poi geto(poi a, poi b, poi 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 getdis(poi x, poi y) { return sqrt(sqr(x.x - y.x) + sqr(x.y - y.y)); }
poi de(poi x, poi y) {
  poi ret;
  ret.x = x.x - y.x;
  ret.y = x.y - y.y;
  return ret;
}
bool check(poi x, poi y) {
  if (fabs(x.x - y.x) < 1e-8 && fabs(x.y - y.y) < 1e-8) return 1;
  if (fabs(x.x + y.x) < 1e-8 && fabs(x.y + y.y) < 1e-8) return 1;
  return 0;
}
int main() {
  ans = -1;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%lf%lf", &a[i].x, &a[i].y);
  for (int i = 1; i <= n; i++)
    for (int j = i + 1; j <= n; j++)
      for (int k = j + 1; k <= n; k++) {
        if (gets(i, j, k) == 0) continue;
        int Type = getType(i, j, k);
        if (Type == 3) continue;
        poi outc = geto(a[i], a[j], a[k]);
        double r = getdis(outc, a[i]);
        if (r < ans) continue;
        bool ok = 1;
        for (int l = 1; l <= n; l++) {
          if (l == i || l == j || l == k) continue;
          if (r - getdis(a[l], outc) > 1e-8) {
            ok = 0;
            break;
          }
        }
        if (!ok) continue;
        if (Type == 1) {
          ans = r;
          continue;
        }
        ok = 0;
        for (int l = 1; l <= n; l++) {
          if (l == i || l == j || l == k) continue;
          if (check(de(a[i], a[j]), de(a[k], a[l]))) {
            ok = 1;
            continue;
          }
        }
        if (ok) ans = r;
      }
  if (ans == -1)
    puts("-1");
  else
    printf("%.9lf", ans);
  return 0;
}