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;
pair<double, double> A[102];
pair<double, double> P;
int i, j, k, t;
double Aux, Ans;
int N;
bool ok;
double det(const pair<double, double> &A, const pair<double, double> &B,
           const pair<double, double> &C) {
  return (A.first * B.second + B.first * C.second + C.first * A.second -
          A.second * B.first - B.second * C.first - C.second * A.first);
}
double dist(const pair<double, double> &A, const pair<double, double> &B) {
  return sqrt((A.first - B.first) * (A.first - B.first) +
              (A.second - B.second) * (A.second - B.second));
}
pair<double, double> Meet(const pair<double, double> &A,
                          const pair<double, double> &B,
                          const pair<double, double> &C) {
  double D = 2 * det(A, B, C);
  pair<double, double> Rez;
  Rez.first =
      ((A.first * A.first + A.second * A.second) * (B.second - C.second) +
       (B.first * B.first + B.second * B.second) * (C.second - A.second) +
       (C.first * C.first + C.second * C.second) * (A.second - B.second)) /
      D;
  Rez.second =
      ((A.first * A.first + A.second * A.second) * (C.first - B.first) +
       (B.first * B.first + B.second * B.second) * (A.first - C.first) +
       (C.first * C.first + C.second * C.second) * (B.first - A.first)) /
      D;
  return Rez;
}
int cmp_real(const double a, const double b) {
  if (a + 1e-4 < b) return -1;
  if (b + 1e-4 < a) return 1;
  return 0;
}
int Angle(const pair<double, double> &A, const pair<double, double> &B,
          const pair<double, double> &C) {
  double a, b, c;
  a = dist(B, C);
  b = dist(A, C);
  c = dist(B, A);
  if (a > b) swap(a, b);
  if (a > c) swap(a, c);
  if (b > c) swap(b, c);
  if (cmp_real(det(A, B, C), 0) == 0) return -1;
  return cmp_real(a * a + b * b, c * c);
}
int main() {
  scanf("%d", &N);
  Ans = 0.0;
  for (i = 1; i <= N; ++i) scanf("%lf %lf", &A[i].first, &A[i].second);
  for (i = 1; i <= N; ++i)
    for (j = i + 1; j <= N; ++j)
      for (t = j + 1; t <= N; ++t) {
        int q = Angle(A[i], A[j], A[t]);
        if (q == -1) continue;
        if (q == 0) {
          ok = false;
          for (k = t + 1; k <= N; ++k) {
            if (Angle(A[i], A[j], A[k]) != 0) continue;
            if (Angle(A[i], A[t], A[k]) != 0) continue;
            if (Angle(A[t], A[j], A[k]) != 0) continue;
            ok = true;
            break;
          }
          if (!ok) continue;
        }
        P = Meet(A[i], A[j], A[t]);
        Aux = 1e20;
        for (k = 1; k <= N; ++k) Aux = min(Aux, dist(A[k], P));
        if (cmp_real(Aux, dist(P, A[i])) == 0) Ans = max(Aux, Ans);
      }
  if (cmp_real(Ans, 0.0) == 0) {
    printf("-1\n");
    return 0;
  }
  printf("%.6lf\n", Ans);
}