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;
int Read() {
  char c;
  while (c = getchar(), (c != '-') && (c < '0' || c > '9'))
    ;
  bool neg = (c == '-');
  int ret = (neg ? 0 : c - 48);
  while (c = getchar(), c >= '0' && c <= '9') ret = ret * 10 + c - 48;
  return neg ? -ret : ret;
}
pair<double, double> operator-(pair<double, double> x, pair<double, double> y) {
  return make_pair(x.first - y.first, x.second - y.second);
}
const double eps = 1e-7;
const int MAXN = 105;
int N;
pair<double, double> a[MAXN];
double ans = -1;
void init() {
  scanf("%d", &N);
  for (int i = 1; i <= N; i++) a[i].first = Read(), a[i].second = Read();
}
double dot(pair<double, double> x, pair<double, double> y) {
  return x.first * y.first + x.second * y.second;
}
int sign(double x) { return x > eps ? 1 : x < -eps ? -1 : 0; }
void Update(double x, double y, double r) {
  if (sign(ans - r) >= 0) return;
  for (int p = 1; p <= N; p++)
    if (sign(r - ((a[p].first - x) * (a[p].first - x)) -
             ((a[p].second - y) * (a[p].second - y))) > 0)
      return;
  ans = r;
}
bool Rectangle(int i, int j, int k) {
  int u, v, w;
  if (dot(a[j] - a[i], a[k] - a[i]) == 0)
    u = j, v = k, w = i;
  else if (dot(a[i] - a[j], a[k] - a[j]) == 0)
    u = i, v = k, w = j;
  else
    u = i, v = j, w = k;
  for (int p = k + 1; p <= N; p++)
    if (dot(a[p] - a[u], a[w] - a[u]) == 0 &&
        dot(a[p] - a[v], a[w] - a[v]) == 0)
      return 1;
  return 0;
}
void work() {
  for (int i = 1; i <= N; i++)
    for (int j = i + 1; j <= N; j++)
      for (int k = j + 1; k <= N; k++) {
        double ang = min(
            dot(a[j] - a[i], a[k] - a[i]),
            min(dot(a[i] - a[j], a[k] - a[j]), dot(a[i] - a[k], a[j] - a[k])));
        if (sign(ang) < 0) continue;
        double D = 2 * (a[i].first * (a[j].second - a[k].second) +
                        a[j].first * (a[k].second - a[i].second) +
                        a[k].first * (a[i].second - a[j].second));
        double x = (dot(a[i], a[i]) * (a[j].second - a[k].second) +
                    dot(a[j], a[j]) * (a[k].second - a[i].second) +
                    dot(a[k], a[k]) * (a[i].second - a[j].second)) /
                   D;
        double y = (dot(a[i], a[i]) * (a[k].first - a[j].first) +
                    dot(a[j], a[j]) * (a[i].first - a[k].first) +
                    dot(a[k], a[k]) * (a[j].first - a[i].first)) /
                   D;
        if (sign(ang) > 0 || Rectangle(i, j, k))
          Update(x, y,
                 ((a[i].first - x) * (a[i].first - x)) +
                     ((a[i].second - y) * (a[i].second - y)));
      }
  if (ans > -1)
    printf("%.10f\n", sqrt(ans));
  else
    puts("-1");
}
int main() {
  init();
  work();
  return 0.0;
}