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>
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
using namespace std;
const double eps = 1e-7;
const double pi = acos(-1.0);
int sgn(double x) { return (x > eps) - (x < -eps); }
int cmp(double x, double y) { return sgn(x - y); }
struct P {
  double x, y;
  P() : x(0), y(0) {}
  P(double a, double b) : x(a), y(b) {}
  void in() { scanf("%lf%lf", &x, &y); }
  void out() { printf("? %.6f %.6f\n", x, y); }
  P operator+(const P &a) const { return P(x + a.x, y + a.y); }
  P operator-(const P &a) const { return P(x - a.x, y - a.y); }
  P operator*(const double &a) const { return P(x * a, y * a); }
  P operator/(const double &a) const { return P(x / a, y / a); }
  double norm() { return sqrt(x * x + y * y); }
  double norm2() { return x * x + y * y; }
};
double dot(P a, P b) { return a.x * b.x + a.y * b.y; }
double cross(P a, P b) { return a.x * b.y - a.y * b.x; }
vector<P> Graham(vector<P> a) {
  int n = a.size(), k = 0;
  if (n <= 2) return vector<P>{};
  for (int i = 0; i <= n - 1; i++)
    if (a[i].y < a[k].y || (a[i].y == a[k].y && a[i].x < a[k].x)) k = i;
  swap(a[0], a[k]);
  sort(a.begin() + 1, a.end(), [a0 = a[0]](P s, P t) {
    double z = cross(s - a0, t - a0);
    if (sgn(z) == 1 ||
        (sgn(z) == 0 && cmp((s - a0).norm(), (t - a0).norm()) < 0))
      return 1;
    return 0;
  });
  vector<P> p(n);
  int top = 1;
  p[0] = a[0];
  p[1] = a[1];
  for (int i = 2; i <= n - 1; i++) {
    while (top && sgn(cross(p[top] - p[top - 1], a[i] - p[top - 1])) <= 0)
      top--;
    p[++top] = a[i];
  }
  p.resize(top + 1);
  return p;
}
bool on_seg(P p, P s, P t) {
  return sgn(cross(p - s, t - s)) == 0 && sgn(dot(p - s, p - t)) <= 0;
}
P proj_on_line(P p, P s, P t) {
  double r = dot(p - s, t - s) / dot(t - s, t - s);
  return s + (t - s) * r;
}
bool check(P p, P q, vector<P> &A, double l) {
  double s = atan2((q - p).y, (q - p).x);
  double pos = 0, neg = 0;
  bool mark = 0;
  for (auto &q : A)
    if (cmp((q - p).norm(), l) == 0) {
      double t = atan2((q - p).y, (q - p).x);
      t -= s;
      while (t <= -pi) t += 2 * pi;
      while (t > pi) t -= 2 * pi;
      if (sgn(t) == 0) continue;
      if (cmp(t, pi) == 0 || cmp(t, -pi) == 0) {
        mark = 1;
        continue;
      }
      if (sgn(t) > 0)
        chmax(pos, t);
      else
        chmax(neg, -t);
    }
  if (cmp(pos + neg, pi) > 0) return 1;
  if (cmp(pos + neg, pi) == 0) return mark;
  return 0;
}
int main() {
  int n;
  scanf("%d", &n);
  vector<P> A(n);
  for (int i = 0; i <= n - 1; i++) A[i].in();
  auto convA = Graham(A);
  if (convA.size() < 3) return puts("-1"), 0;
  double ans = -1;
  for (int i = 0; i <= n - 1; i++) {
    P &p = A[i];
    double d = 1e10, D = 0;
    for (int j = 0; j <= n - 1; j++)
      if (i != j) {
        chmin(d, (A[j] - p).norm());
        chmax(D, (A[j] - p).norm());
      }
    double R = sqrt(d * D);
    vector<P> B;
    B.push_back(p);
    for (int j = 0; j <= n - 1; j++)
      if (i != j) B.push_back(p + (A[j] - p) * (R * R / (A[j] - p).norm2()));
    auto convB = Graham(B);
    int N = convB.size();
    for (int j = 0; j <= N - 1; j++) {
      P &a = convB[j];
      P &b = convB[(j + 1) % N];
      if (on_seg(p, a, b) == 0) {
        P o = proj_on_line(p, a, b);
        o = p + (o - p) * (R * R / (o - p).norm2() / 2);
        if (check(o, p, A, (o - p).norm()) == 1) chmax(ans, (o - p).norm());
      }
    }
  }
  if (ans < 0)
    puts("-1");
  else
    printf("%.10f\n", ans);
  return 0;
}