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;
double eps = 1e-6;
struct point {
  double x, y;
  point() {}
  point(double x1, double y1) {
    x = x1;
    y = y1;
  }
  bool operator<(const point &t) const {
    return x < t.x - eps || fabs(x - t.x) < eps && y < t.y - eps;
  }
  point operator-(const point &t) { return point(x - t.x, y - t.y); }
  point operator+(const point &t) { return point(x + t.x, y + t.y); }
  double operator*(const point &t) { return x * t.x + y * t.y; }
  double operator%(const point &t) { return x * t.y - y * t.x; }
  point operator/(double k) { return point(x / k, y / k); }
  point operator*(double k) { return point(x * k, y * k); }
  double dis() { return x * x + y * y; }
} a[100008];
set<point> F;
int n;
struct Tprogram {
  void open() {
    freopen("", "r", stdin);
    freopen("", "w", stdout);
  }
  void close() {
    fclose(stdin);
    fclose(stdout);
  }
  void rand_init() {
    srand(time(0));
    n = 100;
    for (int i = 1; i <= n; i++) a[i].x = rand(), a[i].y = rand();
  }
  void init() {
    scanf("%d", &n);
    for (int i = 1; i <= n; i++) scanf("%lf%lf", &a[i].x, &a[i].y);
  }
  point get(point a, point b, point c) {
    point d = (a + b) / 2;
    point d1 = d + point(a.y - b.y, b.x - a.x);
    point e = (a + c) / 2;
    point e1 = e + point(a.y - c.y, c.x - a.x);
    double s1 = (e1 - e) % (d - e), s2 = (d1 - e) % (e1 - e);
    return (d * s2 + d1 * s1) / (s1 + s2);
  }
  void work() {
    double ans = -1;
    int cnt = 0;
    for (int i = 1; i <= n; i++)
      for (int j = i + 1; j <= n; j++)
        for (int k = j + 1; k <= n; k++) {
          if (fabs((a[i] - a[j]) % (a[i] - a[k])) <= eps) continue;
          point g = get(a[i], a[j], a[k]);
          if (F.find(g) != F.end()) continue;
          double tmp = 1e12, t;
          vector<point> H;
          H.clear();
          for (int l = 1; l <= n; l++)
            if ((t = (a[l] - g).dis()) < tmp - eps)
              H.clear(), H.push_back(a[l]), tmp = (a[l] - g).dis();
            else if (fabs(t - tmp) < eps)
              H.push_back(a[l]);
          if (fabs((a[i] - g).dis() - tmp) > eps) continue;
          if (fabs((a[j] - g).dis() - tmp) > eps) continue;
          if (fabs((a[k] - g).dis() - tmp) > eps) continue;
          F.insert(g);
          for (int i = 0; i <= H.size() - 1; i++) {
            point t = H[i] - g;
            for (int j = 0; j <= H.size() - 1; j++)
              if ((H[j] - g) % t > eps) goto die;
            goto die1;
          die:;
          }
          ans = (ans > (a[i] - g).dis() ? ans : (a[i] - g).dis());
        die1:;
        }
    if (ans < 0.5)
      printf("-1\n");
    else
      printf("%lf\n", sqrt(ans));
  }
} Program;
int main() {
  Program.init();
  Program.work();
  return 0;
}