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> ak[105];
int n;
double MO(pair<double, double> x) {
  return x.first * x.first + x.second * x.second;
}
double xj(pair<double, double> x, pair<double, double> y) {
  return x.first * y.second - x.second * y.first;
}
double dis(pair<double, double> a, pair<double, double> b) {
  return (a.first - b.first) * (a.first - b.first) +
         (a.second - b.second) * (a.second - b.second);
}
int check_kind(pair<double, double> a, pair<double, double> b,
               pair<double, double> c) {
  if (fabs(xj(pair<double, double>(b.first - a.first, b.second - a.second),
              pair<double, double>(c.first - a.first, c.second - a.second))) <=
      1e-5)
    return 3;
  double bs[4];
  bs[1] = dis(a, b);
  bs[2] = dis(b, c);
  bs[3] = dis(a, c);
  sort(bs + 1, bs + 1 + 3);
  if (fabs(bs[1] + bs[2] - bs[3]) < 1e-4) return 2;
  if (bs[1] + bs[2] < bs[3]) return 3;
  return 1;
}
bool JU(pair<double, double> a, pair<double, double> b, pair<double, double> c,
        pair<double, double> d) {
  if (dis(a, b) != dis(c, d)) return 0;
  if (fabs(a.first + b.first - c.first - d.first) > 1e-4) return 0;
  if (fabs(a.second + b.second - c.second - d.second) > 1e-4) return 0;
  return 1;
}
bool jie(double a, double b, double c, double d, double e, double f,
         pair<double, double> &res) {
  double s = a * e - b * d;
  if (s <= 1e-6 && s >= -1e-6) return 0;
  res.first = (b * f - e * c) / s;
  res.second = (d * c - a * f) / s;
  return 1;
}
bool center(pair<double, double> a, pair<double, double> b,
            pair<double, double> c, pair<double, double> &res) {
  if (!jie(2 * (b.first - a.first), 2 * (b.second - a.second), MO(a) - MO(b),
           2 * (c.first - b.first), 2 * (c.second - b.second), MO(b) - MO(c),
           res))
    return 0;
  return 1;
}
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%lf%lf", &ak[i].first, &ak[i].second);
  }
  double ans = -1;
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= n; j++)
      for (int k = 1; k <= n; k++)
        if (i != j && j != k && i != j)
          if (ak[i] != ak[j] && ak[i] != ak[k] && ak[j] != ak[k]) {
            if (check_kind(ak[i], ak[j], ak[k]) == 1) {
              pair<double, double> u;
              if (!center(ak[i], ak[j], ak[k], u)) continue;
              double de = dis(ak[i], u);
              bool fs = 1;
              for (int p = 1; p <= n; p++) {
                if (dis(ak[p], u) + 1e-4 < de) fs = 0;
                ;
              }
              if (fs) ans = max(ans, de);
            } else if (check_kind(ak[i], ak[j], ak[k]) == 2) {
              for (int p = 1; p <= n; p++)
                if (p != i && p != j && p != k)
                  if (ak[p] != ak[i] && ak[p] != ak[j] && ak[p] != ak[k])
                    if (JU(ak[i], ak[j], ak[k], ak[p])) {
                      pair<double, double> u = pair<double, double>(
                          (ak[i].first + ak[j].first) / 2,
                          (ak[i].second + ak[j].second) / 2);
                      double de = dis(ak[i], u);
                      bool fst = 1;
                      for (int p = 1; p <= n; p++)
                        if (dis(ak[p], u) + 1e-4 < de) fst = 0;
                      if (fst) ans = max(ans, de);
                    }
            }
          }
  if (ans < 0)
    printf("-1\n");
  else
    printf("%.8lf\n", sqrt(ans));
  return 0;
}