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 N = 100 + 5;
const double EPS = 1e-6;
int n, cnt = 0;
double ans = -1.0;
pair<double, double> p[N];
pair<pair<double, double>, double> q[N * N];
inline void cmax(double& x, double y) {
  if (y > x) x = y;
}
inline double sqrdis(const pair<double, double>& x,
                     const pair<double, double>& y) {
  return (x.first - y.first) * (x.first - y.first) +
         (x.second - y.second) * (x.second - y.second);
}
inline pair<double, double> operator+(const pair<double, double>& x,
                                      const pair<double, double>& y) {
  return make_pair(x.first + y.first, x.second + y.second);
}
inline pair<double, double> operator-(const pair<double, double>& x,
                                      const pair<double, double>& y) {
  return make_pair(x.first - y.first, x.second - y.second);
}
inline bool equal(const pair<pair<double, double>, double>& x,
                  const pair<pair<double, double>, double>& y) {
  return fabs(x.first.first - y.first.first) < EPS &&
         fabs(x.first.second - y.first.second) < EPS &&
         fabs(x.second - y.second) < EPS;
}
inline pair<double, double> calc(pair<double, double> x,
                                 pair<double, double> y) {
  double a = x.first, b = x.second, c = y.first, d = y.second,
         t = 2.0 * (b * c - a * d);
  return make_pair(((c * c + d * d) * b - (a * a + b * b) * d) / t,
                   ((a * a + b * b) * c - (c * c + d * d) * a) / t);
}
inline bool ok(int a, int b, int c, pair<double, double>& center) {
  int A = sqrdis(p[b], p[c]), B = sqrdis(p[a], p[c]), C = sqrdis(p[a], p[b]);
  if (A + B <= C || A + C <= B || B + C <= A) return 0;
  center = calc(p[b] - p[a], p[c] - p[a]) + p[a];
  return 1;
}
inline double check(pair<double, double> center, double dis) {
  for (int i = 1; i <= n; ++i)
    if (sqrdis(p[i], center) + EPS < dis) return -1;
  return dis;
}
int main(int argc, char** argv) {
  pair<double, double> c;
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) scanf("%lf%lf", &p[i].first, &p[i].second);
  for (int i = 1; i <= n; ++i)
    for (int j = i + 1; j <= n; ++j)
      for (int k = j + 1; k <= n; ++k)
        if (ok(i, j, k, c)) cmax(ans, check(c, sqrdis(p[i], c)));
  for (int i = 1; i <= n; ++i)
    for (int j = i + 1; j <= n; ++j)
      q[++cnt] = make_pair(make_pair((p[i].first + p[j].first) / 2.0,
                                     (p[i].second + p[j].second) / 2.0),
                           sqrdis(p[i], p[j]) / 4.0);
  sort(q + 1, q + cnt + 1);
  for (int i = 1; i < cnt; ++i)
    if (equal(q[i], q[i + 1])) cmax(ans, check(q[i].first, q[i].second));
  if (ans < 0)
    puts("-1");
  else
    printf("%.10f\n", sqrt(ans));
  return 0;
}