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>
#pragma comment(linker, "/STACK:256000000")
using namespace std;
const double eps = 1e-9;
struct point {
  double x, y;
  point() { x = y = 0; }
  point(double x, double y) : x(x), y(y) {}
  void read() { cin >> x >> y; }
  bool operator==(const point& other) const {
    return fabs(x - other.x) < eps && fabs(y - other.y) < eps;
  }
};
double dist(const point& a, const point& b) {
  return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (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, const point& b) {
  return point(a.x - b.x, a.y - b.y);
}
point operator*(const point& a, double x) { return point(a.x * x, a.y * x); }
point operator*(double x, const point& a) { return a * x; }
point operator/(const point& a, double x) { return point(a.x / x, a.y / x); }
struct line {
  double a, b, c;
  line(point x, point y) {
    a = x.y - y.y;
    b = y.x - x.x;
    c = x.x * y.y - x.y * y.x;
  }
  line(double nx, double ny, point x) {
    b = -nx;
    a = ny;
    c = -a * x.x - b * x.y;
  }
};
point intersect(line a, line b) {
  double d = a.a * b.b - a.b * b.a;
  double d1 = -a.c * b.b + a.b * b.c;
  double d2 = -a.a * b.c + a.c * b.a;
  if (fabs(d) < eps) return point(-1e10, -1e10);
  return point(d1 / d, d2 / d);
}
point circumc(point a, point b, point c) {
  line x(a, b);
  line midab = line(x.a, x.b, (a + b) / 2.);
  line y(b, c);
  line midbc = line(y.a, y.b, (b + c) / 2.);
  return intersect(midab, midbc);
}
const int maxN = 110;
int n;
point a[maxN];
bool is_in(point a, point b, point c) {
  return fabs(dist(a, b) - dist(a, c) - dist(b, c)) < eps;
}
bool is_good(int x, int y, int z) {
  double A = dist(a[x], a[y]);
  double B = dist(a[x], a[z]);
  double C = dist(a[y], a[z]);
  return fabs(A * A + B * B - C * C) < eps ||
         fabs(A * A + C * C - B * B) < eps || fabs(B * B + C * C - A * A) < eps;
}
bool cmp(point a, point b) { return a.x < b.x || a.x == b.x && a.y < b.y; }
bool cw(point a, point b, point c) {
  return a.x * (b.y - c.y) + b.x * (c.y - a.y) + c.x * (a.y - b.y) < 0;
}
bool ccw(point a, point b, point c) {
  return a.x * (b.y - c.y) + b.x * (c.y - a.y) + c.x * (a.y - b.y) > 0;
}
void convex_hull(vector<point>& a) {
  if (a.size() == 1) return;
  sort(a.begin(), a.end(), &cmp);
  point p1 = a[0], p2 = a.back();
  vector<point> up, down;
  up.push_back(p1);
  down.push_back(p1);
  for (size_t i = 1; i < a.size(); ++i) {
    if (i == a.size() - 1 || cw(p1, a[i], p2)) {
      while (up.size() >= 2 && !cw(up[up.size() - 2], up[up.size() - 1], a[i]))
        up.pop_back();
      up.push_back(a[i]);
    }
    if (i == a.size() - 1 || ccw(p1, a[i], p2)) {
      while (down.size() >= 2 &&
             !ccw(down[down.size() - 2], down[down.size() - 1], a[i]))
        down.pop_back();
      down.push_back(a[i]);
    }
  }
  a.clear();
  for (size_t i = 0; i < up.size(); ++i) a.push_back(up[i]);
  for (size_t i = down.size() - 2; i > 0; --i) a.push_back(down[i]);
}
bool is_good(vector<point>& v, point x) {
  v.push_back(v[0]);
  for (int i = 0; i + 1 < v.size(); ++i) {
    if (is_in(v[i], v[i + 1], x)) {
      v.pop_back();
      return false;
    }
  }
  v.pop_back();
  return true;
}
int main() {
  cin >> n;
  vector<point> v;
  for (int i = 0; i < n; ++i) {
    a[i].read();
    v.push_back(a[i]);
  }
  convex_hull(v);
  double res = 0;
  for (int i = 0; i < n; ++i) {
    for (int j = i + 1; j < n; ++j) {
      for (int k = j + 1; k < n; ++k) {
        if (a[i] == a[j]) continue;
        if (a[i] == a[k]) continue;
        if (a[j] == a[k]) continue;
        double A = dist(a[i], a[j]);
        double B = dist(a[j], a[k]);
        double C = dist(a[k], a[i]);
        if (A * A + B * B < C * C - eps) continue;
        if (A * A + C * C < B * B - eps) continue;
        if (B * B + C * C < A * A - eps) continue;
        point cand = circumc(a[i], a[j], a[k]);
        double cdist = dist(a[i], cand);
        if (!is_good(v, cand)) continue;
        double cd = 1e10;
        for (int l = 0; l < n; ++l) {
          if (dist(a[l], cand) < cdist - eps) {
            cd = -1;
            break;
          }
          cd = min(cd, dist(a[l], cand));
        }
        res = max(res, cd);
      }
    }
  }
  if (res < eps) {
    printf("-1\n");
    return 0;
  }
  printf("%.10lf\n", res);
  return 0;
}