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;
double D(pair<double, double> i, pair<double, double> j) {
  return sqrt((i.first - j.first) * (i.first - j.first) +
              (i.second - j.second) * (i.second - j.second));
}
double cross(pair<double, double> _a, pair<double, double> _b,
             pair<double, double> _c) {
  return _a.first * (_b.second - _c.second) +
         _b.first * (_c.second - _a.second) +
         _c.first * (_a.second - _b.second);
}
struct comp {
  bool operator()(const pair<double, double>& lhs,
                  const pair<double, double>& rhs) const {
    if (fabs(lhs.first - rhs.first) < 1e-9) {
      if (fabs(lhs.second - rhs.second) < 1e-9) {
        return false;
      } else
        return lhs.second < rhs.second;
    }
    return lhs.first < rhs.first;
  }
};
bool comp2(pair<double, double> _a, pair<double, double> _b) {
  return atan2(_a.second, _a.first) < atan2(_b.second, _b.first);
}
struct target {
  pair<double, double> u;
  double d;
  target() {}
  bool operator<(const target& t) const { return d > t.d; }
};
set<pair<double, double>, comp> S;
int N;
pair<double, double> p[128];
int flag, cnt;
vector<target> q;
vector<pair<double, double> > v;
target t;
pair<double, double> u;
double d;
int main(int argc, char const* argv[]) {
  cin >> N;
  for (int i = 0; i < N; i += 1) {
    cin >> p[i].first >> p[i].second;
  }
  for (int i = 0; i < N; i += 1) {
    for (int j = i + 1; j < N; j += 1) {
      for (int k = j + 1; k < N; k += 1) {
        d = p[i].first * (p[j].second - p[k].second) +
            p[j].first * (p[k].second - p[i].second) +
            p[k].first * (p[i].second - p[j].second);
        d *= 2.0;
        if (d != 0.0) {
          u.first = (p[i].first * p[i].first + p[i].second * p[i].second) *
                        (p[j].second - p[k].second) +
                    (p[j].first * p[j].first + p[j].second * p[j].second) *
                        (p[k].second - p[i].second) +
                    (p[k].first * p[k].first + p[k].second * p[k].second) *
                        (p[i].second - p[j].second);
          u.second = (p[i].first * p[i].first + p[i].second * p[i].second) *
                         (p[j].first - p[k].first) +
                     (p[j].first * p[j].first + p[j].second * p[j].second) *
                         (p[k].first - p[i].first) +
                     (p[k].first * p[k].first + p[k].second * p[k].second) *
                         (p[i].first - p[j].first);
          u.second *= -1.0;
          u.first /= d;
          u.second /= d;
          S.insert(u);
        }
      }
    }
  }
  while (!S.empty()) {
    t.u = *S.begin();
    S.erase(S.begin());
    t.d = 1e99;
    for (int i = 0; i < N; i += 1) {
      t.d = min(t.d, D(t.u, p[i]));
    }
    q.push_back(t);
  }
  sort(q.begin(), q.end());
  pair<double, double> cn = make_pair(0, 0);
  for (int i = 0; i < q.size(); i += 1) {
    v.clear();
    for (int j = 0; j < N; j += 1) {
      if (fabs(D(q[i].u, p[j]) - q[i].d) < 1e-9) {
        v.push_back(
            make_pair(p[j].first - q[i].u.first, p[j].second - q[i].u.second));
      }
    }
    sort(v.begin(), v.end(), comp2);
    cnt = v.size();
    if (cnt < 3) continue;
    v.push_back(v[0]);
    flag = 1;
    for (int j = 0; j < cnt; j += 1) {
      if (cross(v[j], cn, v[j + 1]) >= 0) {
        flag = 0;
        break;
      }
    }
    if (flag) {
      printf("%.6lf\n", q[i].d);
      return 0;
    }
  }
  cout << -1 << '\n';
  return 0;
}