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;
struct point {
  double x, y;
  point() {}
  point(double a, double b) {
    x = a;
    y = b;
  }
  point ort() { return point(-y, x); }
};
point operator+(const point &a, const point &b) {
  return point(a.x + b.x, a.y + b.y);
}
point operator-(const point &a, const point &b) {
  return point(a.x - b.x, a.y - b.y);
}
point operator/(const point &a, double k) { return point(a.x / k, a.y / k); }
point operator*(const point &a, double k) { return point(a.x * k, a.y * k); }
double dist(const point &A, const point &B) {
  return hypot(A.x - B.x, A.y - B.y);
}
double cross(const point &A, const point &B) { return A.x * B.y - A.y * B.x; }
double dot(const point &A, const point &B) { return A.x * B.x + A.y * B.y; }
double area(const point &A, const point &B, const point &C) {
  return cross(B - A, C - A);
}
point lineIntersection(const point &A, const point &B, const point &C,
                       const point &D) {
  return A + (B - A) * (cross(C - A, D - C) / cross(B - A, D - C));
}
bool valid(const point &a, const point &b, const point &c) {
  if (dot(b - a, c - a) <= 0) return 0;
  if (dot(a - b, c - b) <= 0) return 0;
  if (dot(a - c, b - c) <= 0) return 0;
  return 1;
}
point get(const point &a, const point &b, const point &c) {
  point mid1 = (a + b) / 2;
  point dir1 = (b - a);
  point mid2 = (a + c) / 2;
  point dir2 = (c - a);
  return lineIntersection(mid1, mid1 + dir1.ort() * 10000, mid2,
                          mid2 + dir2.ort() * 10000);
}
point plano[123];
pair<int, int> planoint[123];
int n;
bool dif(pair<int, int> a, pair<int, int> b) {
  return a.first != b.first && a.second != b.second;
}
bool found(pair<int, int> a, int &last) {
  for (int i = 0; i < n; ++i)
    if (planoint[i] == a) {
      last = i;
      return 1;
    }
  return 0;
}
double valid(int x, int y, int z) {
  pair<int, int> a = planoint[x], b = planoint[y], c = planoint[z];
  if (!dif(a, b)) return -1.0;
  if (abs(a.first - b.first) != abs(a.second - b.second)) return -1.0;
  int lado = abs(a.first - b.first);
  if (a.second > b.second) swap(a, b);
  bool ok = 0;
  int last;
  if (c == pair<int, int>(a.first + lado, a.second) &&
      found(pair<int, int>(a.first, a.second + lado), last))
    ok = 1;
  if (!ok && c == pair<int, int>(a.first, b.second + lado) &&
      found(pair<int, int>(a.first + lado, a.second), last))
    ok = 1;
  if (!ok) return -1.0;
  point mid = point((a.first + b.first) / 2.0, (a.second + b.second) / 2.0);
  double radio = dist(mid, point(a.first, b.first));
  for (int i = 0; i < n; ++i)
    if (i != x && i != y && i != z && i != last &&
        dist(mid, plano[i]) + 1e-9 <= radio)
      return -1.0;
  return radio;
}
int main() {
  int x, y;
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) {
    scanf("%d %d", &x, &y);
    plano[i] = point(x, y);
    planoint[i] = pair<int, int>(x, y);
  }
  double res = -1;
  for (int a = 0; a < n; ++a)
    for (int b = a + 1; b < n; ++b)
      for (int c = b + 1; c < n; ++c) {
        if (!valid(plano[a], plano[b], plano[c])) continue;
        point circunradio = get(plano[a], plano[b], plano[c]);
        double radio = dist(circunradio, plano[a]);
        bool covered = 0;
        for (int i = 0; i < n; ++i)
          if (i != a && i != b && i != c &&
              dist(circunradio, plano[i]) + 1e-9 <= radio) {
            covered = 1;
            break;
          }
        if (!covered) res = max(res, radio);
      }
  sort(planoint, planoint + n);
  for (int a = 0; a < n; ++a)
    for (int b = a + 1; b < n; ++b)
      for (int c = b + 1; c < n; ++c) {
        double p = valid(a, b, c);
        if (p > 0) res = max(res, p);
        p = valid(a, c, b);
        if (p > 0) res = max(res, p);
        p = valid(b, c, a);
        if (p > 0) res = max(res, p);
      }
  printf("%.10f\n", res);
  return 0;
}