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 = 111;
const double eps = 1e-8;
const double inf = 1e18;
int n, x[N], y[N], z[N];
int cc, c[N], dd, d[N];
double ans, X, Y;
int f(int i, int j, int k) {
  return (y[i] - y[j]) * (x[j] - x[k]) - (y[j] - y[k]) * (x[i] - x[j]);
}
double g(int i, int j) {
  return (double)(y[i] - Y) * (X - x[j]) - (double)(Y - y[j]) * (x[i] - X);
}
double pw(double o) { return o * o; }
void cal(int o) {
  int i, j, k;
  if (X - eps < x[1] || x[n] < X + eps) return;
  for (k = 2; k <= cc; k = k + 1)
    if (x[c[k - 1]] < X + eps && X - eps < x[c[k]]) break;
  Y += eps;
  if (g(c[k - 1], c[k]) > -eps) return;
  Y -= eps;
  for (k = 2; k <= dd; k = k + 1)
    if (x[d[k - 1]] < X + eps && X - eps < x[d[k]]) break;
  Y -= eps;
  if (g(d[k - 1], d[k]) < eps) return;
  Y += eps;
  double t = pw(X - x[o]) + pw(Y - y[o]);
  for (i = 1; i <= n; i = i + 1)
    if (t - eps > pw(X - x[i]) + pw(Y - y[i])) return;
  ans = max(ans, t);
}
int r(int i, int j, int k) {
  return (x[j] - x[i]) * (x[k] - x[i]) + (y[j] - y[i]) * (y[k] - y[i]);
}
void solve(int i, int j, int k) {
  if (f(i, j, k) == 0) return;
  if (r(i, j, k) < 0 || r(j, k, i) < 0 || r(k, i, j) < 0) return;
  long long a1, b1, c1, a2, b2, c2, t;
  a1 = 2 * (x[j] - x[i]), b1 = 2 * (y[j] - y[i]), c1 = z[j] - z[i];
  a2 = 2 * (x[k] - x[i]), b2 = 2 * (y[k] - y[i]), c2 = z[k] - z[i];
  t = a1 * b2 - a2 * b1;
  X = (double)(c1 * b2 - c2 * b1) / t;
  Y = (double)(c1 * a2 - c2 * a1) / (-t);
  cal(i);
}
int e[N];
int main() {
  int i, j, k;
  scanf("%d", &n);
  for (i = 1; i <= n; i = i + 1) {
    scanf("%d%d", x + i, y + i);
    z[i] = x[i] * x[i] + y[i] * y[i];
  }
  for (i = 1; i <= n; i = i + 1)
    for (j = i + 1; j <= n; j = j + 1)
      if (x[i] > x[j] || (x[i] == x[j] && y[i] > y[j]))
        swap(x[i], x[j]), swap(y[i], y[j]), swap(z[i], z[j]);
  for (i = 1; i <= n; i = i + 1) {
    while (cc > 1 && f(c[cc - 1], c[cc], i) <= 0) {
      c[cc--] = 0;
    }
    c[++cc] = i;
    while (dd > 1 && f(d[dd - 1], d[dd], i) >= 0) {
      d[dd--] = 0;
    }
    d[++dd] = i;
  }
  if (cc <= 2 && dd <= 2) {
    cout << -1;
    return 0;
  }
  for (i = 1; i <= n; i = i + 1)
    for (j = i + 1; j <= n; j = j + 1)
      for (k = j + 1; k <= n; k = k + 1) solve(i, j, k);
  if (ans < eps)
    cout << -1;
  else
    printf("%.9lf", sqrt(ans));
  return 0;
}