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;
template <typename T, typename U>
inline void smin(T &a, U b) {
  if (a > b) a = b;
}
template <typename T, typename U>
inline void smax(T &a, U b) {
  if (a < b) a = b;
}
struct point {
  double first, second;
  point(double first = 0, double second = 0) : first(first), second(second) {}
  point operator-(point a) { return point(first - a.first, second - a.second); }
  point operator+(point a) { return point(first + a.first, second + a.second); }
  point operator*(double a) { return point(first * a, second * a); }
  point operator/(double a) { return point(first / a, second / a); }
  point operator&(point a) {
    return point(first * a.first - second * a.second,
                 first * a.second + second * a.first);
  }
  point rotate(double al) { return *this & point(cos(al), sin(al)); }
  point conj() { return point(-second, first); }
  double operator^(point a) { return first * a.second - second * a.first; }
  double operator*(point a) { return first * a.first + second * a.second; }
  point norm() {
    double s = nor();
    if (s < 1e-8) return *this;
    return point(first / s, second / s);
  }
  double nor() { return sqrt(*this * *this); }
  double al() { return atan2(second, first); }
  bool operator<(const point &a) const {
    if (fabs(first - a.first) > 1e-8) return first < a.first;
    return second < a.second - 1e-8;
  }
  bool operator>(const point &a) const {
    if (fabs(first - a.first) > 1e-8) return first > a.first;
    return second > a.second + 1e-8;
  }
  bool operator==(const point &a) const {
    if (fabs(first - a.first) > 1e-8) return 0;
    return fabs(second - a.second) < 1e-8;
  }
  void input() { scanf("%lf %lf", &first, &second); }
  void print() { printf("%lf %lf\n", first, second); }
};
point p[111];
double dst[111][111];
void tri_center(point &a, point &b, point &c, point &mid) {
  point ab = (a + b) / 2, ac = (a + c) / 2;
  point aa = (b - a).conj(), bb = (c - a).conj();
  double s = (aa ^ bb), st = (ac - ab) ^ bb;
  mid = ab + aa * (st / s);
}
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) p[i].input();
  point tmp[10];
  double r = 0, R;
  for (int i = 0; i < n; i++)
    for (int j = i + 1; j < n; j++)
      for (int k = j + 1; k < n; k++) {
        if (fabs((p[i] - p[j]) ^ (p[j] - p[k])) < 1e-8) continue;
        point a = p[i], b = p[j], c = p[k];
        if (a > b) swap(a, b);
        if (a > c) swap(a, c);
        if (b > c) swap(b, c);
        double ab = (a - b).nor(), ac = (a - c).nor(), bc = (b - c).nor();
        if (((ab) * (ab)) > ((ac) * (ac)) + ((bc) * (bc)) + 1e-8 ||
            ((ac) * (ac)) > ((bc) * (bc)) + ((ab) * (ab)) + 1e-8 ||
            ((bc) * (bc)) > ((ac) * (ac)) + ((ab) * (ab)) + 1e-8)
          continue;
        point mid, center;
        tri_center(a, b, c, center);
        R = (center - a).nor();
        int ok = 0;
        if (ab > 2 * R - 1e-8) mid = center * 2 - c, ok = 1;
        if (ac > 2 * R - 1e-8) mid = center * 2 - b, ok = 1;
        if (bc > 2 * R - 1e-8) mid = center * 2 - a, ok = 1;
        if (ok) {
          for (int ii = 0; ii < n; ii++)
            if (mid == p[ii]) {
              ok = 0;
              break;
            }
          if (ok) continue;
        }
        ok = 1;
        for (int ii = 0; ii < n; ii++)
          if ((center - p[ii]).nor() < R - 1e-8) {
            ok = 0;
            break;
          }
        if (ok) smax(r, R);
      }
  if (r < 1e-8)
    puts("-1");
  else
    printf("%.18lf\n", r);
  return 0;
}