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;
using dbl = long double;
const dbl INF = 1e18;
const dbl EPS = 1e-9;
struct pt {
  dbl first, second;
  pt(dbl a, dbl b) : first(a), second(b) {}
  pt() : pt(0, 0) {}
};
set<pair<int, int>> s;
istream &operator>>(istream &in, pt &p) {
  int first, second;
  in >> first >> second;
  s.emplace(first, second);
  p.first = first, p.second = second;
  return in;
}
ostream &operator<<(ostream &out, pt p) {
  return out << p.first << " " << p.second;
}
pt operator+(pt a, pt b) { return {a.first + b.first, a.second + b.second}; }
pt vec(pt a, pt b) { return {b.first - a.first, b.second - a.second}; }
pt operator*(pt a, dbl k) { return {a.first * k, a.second * k}; }
pt rot(pt a) { return {a.second, -a.first}; }
dbl operator*(pt a, pt b) { return a.first * b.first + a.second * b.second; }
dbl operator%(pt a, pt b) { return a.first * b.second - a.second * b.first; }
pt cross(pt a, pt b, pt c, pt d) {
  dbl acd = vec(a, c) % vec(a, d);
  dbl bdc = vec(b, d) % vec(b, c);
  assert(abs(acd + bdc) > EPS);
  return a + vec(a, b) * (acd / (acd + bdc));
}
bool sharp(pt a, pt b, pt c) { return vec(a, b) * vec(a, c) > -EPS; }
bool stra(pt a, pt b, pt c) { return abs(vec(a, b) * vec(a, c)) < EPS; }
dbl dist(pt a, pt b) { return hypot(a.first - b.first, a.second - b.second); }
const int N = 110;
int n;
dbl ans = -1;
pt a[N];
bool sharp(int i, int j, int k) { return sharp(a[i], a[j], a[k]); }
bool stra(int i, int j, int k) { return stra(a[i], a[j], a[k]); }
bool fnd(pt p) {
  int first = (int)round(p.first);
  int second = (int)round(p.second);
  assert(abs(first - p.first) < EPS && abs(second - p.second) < EPS);
  return s.count(make_pair(first, second));
}
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  for (int i = 0; i < n; ++i) {
    for (int j = i + 1; j < n; ++j) {
      for (int k = j + 1; k < n; ++k) {
        if (!sharp(i, j, k) || !sharp(j, i, k) || !sharp(k, i, j)) {
          continue;
        }
        if (stra(i, j, k) && !fnd(a[i] + vec(a[i], a[j]) + vec(a[i], a[k]))) {
          continue;
        }
        if (stra(j, i, k) && !fnd(a[j] + vec(a[j], a[i]) + vec(a[j], a[k]))) {
          continue;
        }
        if (stra(k, i, j) && !fnd(a[k] + vec(a[k], a[i]) + vec(a[k], a[j]))) {
          continue;
        }
        pt ij1 = (a[i] + a[j]) * 0.5;
        pt ij2 = ij1 + rot(vec(a[i], a[j]));
        pt ik1 = (a[i] + a[k]) * 0.5;
        pt ik2 = ik1 + rot(vec(a[i], a[k]));
        pt o = cross(ij1, ij2, ik1, ik2);
        dbl r = dist(o, a[i]);
        bool f = true;
        for (int t = 0; t < n; ++t) {
          if (dist(o, a[t]) < r - EPS) {
            f = false;
          }
        }
        if (f) {
          ans = max(ans, r);
        }
      }
    }
  }
  if (ans < 0) {
    cout << -1 << endl;
  } else {
    cout << fixed << setprecision(20) << ans << endl;
  }
  return 0;
}