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 INF = 2147483647;
const double pi = acos(-1.0);
const int maxn = 210;
int N;
struct point {
  double x, y;
  point(double _x = 0, double _y = 0) {
    x = _x;
    y = _y;
  }
  point operator+(const point &a) { return point(x + a.x, y + a.y); }
  point operator-(const point &a) { return point(x - a.x, y - a.y); }
  point operator*(const double &a) { return point(x * a, y * a); }
  point rotate(double angle) {
    return point(x * cos(angle) - y * sin(angle),
                 x * sin(angle) + y * cos(angle));
  }
} a[maxn];
double cross(point a, point b) { return a.x * b.y - b.x * a.y; }
double dot(point a, point b) { return a.x * b.x + a.y * b.y; }
bool judge(int i, int j, int k) {
  int x, y, z;
  x = dot(a[j] - a[i], a[k] - a[i]);
  y = dot(a[k] - a[j], a[i] - a[j]);
  z = dot(a[j] - a[k], a[i] - a[k]);
  if (x > 0 && y > 0 && z > 0)
    return true;
  else
    return false;
}
double dist(point a, point b) { return sqrt(dot(a - b, a - b)); }
double solve(int i, int j, int k) {
  point p = a[j] + a[i];
  p = p * 0.5;
  point v = (a[j] - a[i]).rotate(pi / 2.0);
  point q = a[k] + a[i];
  q = q * 0.5;
  point w = (a[k] - a[i]).rotate(pi / 2.0);
  point A = p - q;
  double t = cross(w, A) / cross(v, w);
  point ret = p + v * t;
  double _ans = sqrt(dot(ret - a[i], ret - a[i]));
  for (int l = 1; l <= N; l++)
    if (l != i && l != j && l != k && dist(a[l], ret) < _ans) return -1;
  return _ans;
}
double judge2(int i, int j, int k) {
  int x, y, z;
  x = dot(a[j] - a[i], a[k] - a[i]);
  y = dot(a[k] - a[j], a[i] - a[j]);
  z = dot(a[j] - a[k], a[i] - a[k]);
  if (y == 0) swap(x, y), swap(i, j);
  if (z == 0) swap(x, z), swap(i, k);
  if (x == 0) {
    point A = a[j] + (a[k] - a[i]);
    for (int l = 1; l <= N; l++)
      if (a[l].x == A.x && a[l].y == A.y) {
        point ret = (a[k] - a[j]) * 0.5;
        point pos = a[j] + ret;
        double _ans = sqrt(dot(ret, ret));
        for (int s = 1; s <= N; s++)
          if (s != i && s != j && s != k && s != l && dist(pos, a[s]) < _ans)
            return -1;
        return _ans;
      }
  } else
    return -1e10;
}
int main() {
  cin >> N;
  for (int i = 1; i <= N; i++) scanf("%lf%lf", &a[i].x, &a[i].y);
  double ans = -1e10;
  for (int i = 1; i <= N; i++)
    for (int j = i + 1; j <= N; j++)
      for (int k = j + 1; k <= N; k++) {
        if (judge(i, j, k)) ans = max(ans, solve(i, j, k));
        ans = max(ans, judge2(i, j, k));
      }
  if (ans < 0)
    puts("-1");
  else
    printf("%.10f\n", ans);
  return 0;
}