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;
bool debug = false;
int n, m, k;
int dx[4] = {0, 1, 0, -1}, dy[4] = {1, 0, -1, 0};
long long ln, lk, lm;
int x[105], y[105];
set<pair<int, int>> ss;
double ans = -1;
int ck(int i, int j, int k) {
  int a = x[j] - x[i], b = y[j] - y[i];
  int c = x[k] - x[i], d = y[k] - y[i];
  return a * c + b * d;
}
double dis(int i, int j) { return hypot(x[i] - x[j], y[i] - y[j]); }
int dis1(int i, int j) {
  return (x[i] - x[j]) * (x[i] - x[j]) + (y[i] - y[j]) * (y[i] - y[j]);
}
pair<double, double> area(double x1, double y1, double x2, double y2, double x3,
                          double y3) {
  double a = ((y2 - y1) * (y3 * y3 - y1 * y1 + x3 * x3 - x1 * x1) -
              (y3 - y1) * (y2 * y2 - y1 * y1 + x2 * x2 - x1 * x1)) /
             (2.0 * ((x3 - x1) * (y2 - y1) - (x2 - x1) * (y3 - y1)));
  double b = ((x2 - x1) * (x3 * x3 - x1 * x1 + y3 * y3 - y1 * y1) -
              (x3 - x1) * (x2 * x2 - x1 * x1 + y2 * y2 - y1 * y1)) /
             (2.0 * ((y3 - y1) * (x2 - x1) - (y2 - y1) * (x3 - x1)));
  return {a, b};
}
void dd(pair<double, double> p, double t) {
  for (int(e) = 0; (e) < (int)(n); (e)++) {
    double d = hypot(p.first - x[e], p.second - y[e]);
    if (d - t < -1e-9) return;
  }
  ans = max(t, ans);
}
bool ck4(int i, int j, int k) {
  pair<int, int> p1 = {x[j] - x[i] + x[k], y[j] - y[i] + y[k]};
  if (ss.find(p1) == ss.end()) return 1;
  return dis1(i, j) != dis1(i, k);
}
void ck3(int i, int j, int k) {
  int a = ck(i, j, k);
  int b = ck(j, i, k);
  int c = ck(k, i, j);
  if (a < 0 || b < 0 || c < 0) return;
  if (a == 0)
    if (ck4(i, j, k)) return;
  if (b == 0)
    if (ck4(j, i, k)) return;
  if (c == 0)
    if (ck4(k, i, j)) return;
  auto p = area(x[i], y[i], x[j], y[j], x[k], y[k]);
  double t = hypot(p.first - x[i], p.second - y[i]);
  dd(p, t);
}
int main() {
  scanf("%d", &n);
  for (int(i) = 0; (i) < (int)(n); (i)++) {
    scanf("%d%d", x + i, y + i);
    ss.insert({x[i], y[i]});
  }
  for (int(i) = 0; (i) < (int)(n); (i)++)
    for (int(j) = 0; (j) < (int)(n); (j)++)
      if (i != j) {
        for (int(k) = 0; (k) < (int)(n); (k)++)
          if (i != k && j != k) {
            ck3(i, j, k);
          }
      }
  if (ans < 0)
    puts("-1");
  else
    printf("%.10lf\n", ans);
}