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;
const int INF = 1E9 + 7;
template <class C>
void mini(C& a4, C b4) {
  a4 = min(a4, b4);
}
template <class C>
void maxi(C& a4, C b4) {
  a4 = max(a4, b4);
}
pair<int, int> conv(complex<long double> x) {
  return make_pair((int)roundl(x.real()), (int)roundl(x.imag()));
}
set<pair<int, int> > S;
int n;
vector<complex<long double> > v;
long double res = 0.0;
bool vis(complex<long double> p, long double t) {
  for (int i = 0; i < (n); ++i)
    if (norm(p - v[i]) < t) return false;
  return true;
}
inline long double operator^(const complex<long double>& a,
                             const complex<long double>& b) {
  return real(a) * imag(b) - imag(a) * real(b);
}
inline long double operator%(const complex<long double>& a,
                             const complex<long double>& b) {
  return real(a) * real(b) + imag(a) * imag(b);
}
inline long double wek(const complex<long double>& a,
                       const complex<long double>& b,
                       const complex<long double>& c) {
  return (b - a) ^ (c - a);
}
int prosta_prosta(const complex<long double>& A, const complex<long double>& B,
                  const complex<long double>& C, const complex<long double>& D,
                  complex<long double>& p) {
  if (abs((A - B) ^ (C - D)) < 1E-10)
    return (abs(wek(A, B, C)) < 1E-10 ? -1 : 0);
  long double a = (wek(C, D, A)), b = (A - B) ^ (C - D);
  p = (B * a + A * (b - a)) / b;
  return 1;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n;
  for (int i = 0; i < (n); ++i) {
    int x, y;
    cin >> x >> y;
    x *= 2;
    y *= 2;
    v.push_back(complex<long double>(x, y));
    S.insert(conv(v.back()));
  }
  for (int i = 0; i < (n); ++i)
    for (int j = 0; j < (i); ++j)
      for (int k = 0; k < (n); ++k)
        if (k != i && k != j) {
          complex<long double> s = 0.5l * (v[i] + v[j]);
          long double t = norm(s - v[i]);
          if (t == norm(s - v[k]) && S.count(conv(s + (s - v[k]))) && vis(s, t))
            maxi(res, t);
        }
  for (int i = 0; i < (n); ++i)
    for (int j = 0; j < (n); ++j)
      for (int k = 0; k < (n); ++k) {
        vector<long double> d;
        d.push_back(norm(v[i] - v[j]));
        d.push_back(norm(v[i] - v[k]));
        d.push_back(norm(v[k] - v[j]));
        sort((d).begin(), (d).end());
        if (d[0] + d[1] > d[2] + 1E-10) {
          complex<long double> s, s1 = 0.5l * (v[i] + v[j]),
                                  s2 = 0.5l * (v[j] + v[k]);
          prosta_prosta(s1, s1 + complex<long double>(0, 1) * (v[j] - s1), s2,
                        s2 + complex<long double>(0, 1) * (v[j] - s2), s);
          long double t = norm(s - v[i]);
          if (vis(s, t)) maxi(res, t);
        }
      }
  if (res == 0.0) {
    cout << -1 << endl;
    return 0;
  }
  cout << fixed << setprecision(9) << sqrtl(res) / 2.0l << endl;
  return 0;
}