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;
int dcmp(double p) {
  if (abs(p) < 1e-10) return 0;
  return p > 0 ? 1 : -1;
}
struct Point {
  double x, y;
  Point() {}
  Point(double x, double y) : x(x), y(y) {}
  friend Point operator-(const Point &a, const Point &b) {
    return Point(a.x - b.x, a.y - b.y);
  }
  friend Point operator+(const Point &a, const Point &b) {
    return Point(a.x + b.x, a.y + b.y);
  }
  friend Point operator*(const Point &a, double p) {
    return Point(a.x * p, a.y * p);
  }
  friend Point operator/(const Point &a, double p) {
    return Point(a.x / p, a.y / p);
  }
  friend bool operator!=(const Point &a, const Point &b) {
    return dcmp(a.x - b.x) || dcmp(a.y - b.y);
  }
  void Read() { cin >> x >> y; }
} p[110];
double Dot(Point a, Point b) { return a.x * b.x + a.y * b.y; }
double Cross(Point a, Point b) { return a.x * b.y - a.y * b.x; }
double Len(Point a) { return sqrt(Dot(a, a)); }
int n;
void read() {
  cin >> n;
  for (int i = 1; i <= n; ++i) p[i].Read();
}
bool check(Point a, double r) {
  for (int i = 1; i <= n; ++i)
    if (dcmp(Len(a - p[i]) - r) < 0) return false;
  return true;
}
Point GetInter(Point P, Point v1, Point Q, Point v2) {
  Point v = P - Q;
  double t = Cross(v2, v) / Cross(v1, v2);
  return P + v1 * t;
}
void work() {
  double ans = -1;
  for (int a = 1; a <= n; ++a)
    for (int b = a + 1; b <= n; ++b)
      for (int c = 1; c <= n; ++c)
        if (c != a && c != b)
          for (int d = c + 1; d <= n; ++d)
            if (d != a && d != b) {
              Point o1 = (p[a] + p[b]) / 2, o2 = (p[c] + p[d]) / 2;
              if (o1 != o2 || !dcmp(Cross(p[a] - p[b], p[a] - p[c]))) continue;
              if (check(o1, Len(o1 - p[a]))) ans = max(ans, Len(o1 - p[a]));
            }
  for (int a = 1; a <= n; ++a)
    for (int b = a + 1; b <= n; ++b)
      for (int c = b + 1; c <= n; ++c)
        if (dcmp(Dot(p[b] - p[a], p[c] - p[a])) > 0 &&
            dcmp(Dot(p[a] - p[b], p[c] - p[b])) > 0 &&
            dcmp(Dot(p[a] - p[c], p[b] - p[c])) > 0) {
          Point m1 = (p[a] + p[b]) / 2, v1 = m1 - p[a];
          Point m2 = (p[b] + p[c]) / 2, v2 = m2 - p[b];
          v1 = Point(v1.y, -v1.x), v2 = Point(v2.y, -v2.x);
          Point o = GetInter(m1, v1, m2, v2);
          if (check(o, Len(o - p[a]))) ans = max(ans, Len(o - p[a]));
        }
  if (ans < 0)
    printf("-1\n");
  else
    printf("%.20f\n", ans);
}
int main() {
  read();
  work();
  return 0;
}