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;
pair<int, int> p[111];
map<pair<int, int>, int> mp;
pair<int, int> operator+(const pair<int, int> &a, const pair<int, int> &b) {
  return make_pair(a.first + b.first, a.second + b.second);
}
pair<int, int> operator-(const pair<int, int> &a, const pair<int, int> &b) {
  return make_pair(a.first - b.first, a.second - b.second);
}
int operator*(const pair<int, int> &a, const pair<int, int> &b) {
  return a.first * b.first + a.second * b.second;
}
int operator^(const pair<int, int> &a, const pair<int, int> &b) {
  return a.first * b.second - a.second * b.first;
}
pair<int, int> conj(const pair<int, int> &a) {
  return pair<int, int>(-a.second, a.first);
}
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    scanf("%d%d", &p[i].first, &p[i].second);
    mp[p[i]] = 1;
  }
  double ans = 0;
  auto can = [&](double first, double second, double r) {
    for (int i = 1; i <= n; i++)
      if ((first - p[i].first) * (first - p[i].first) +
              (second - p[i].second) * (second - p[i].second) <
          r * r - 1e-8)
        return 0;
    return 1;
  };
  for (int i = 1; i <= n; i++)
    for (int j = i + 1; j <= n; j++) {
      for (int k = j + 1; k <= n; k++) {
        int a = (p[j] - p[k]) * (p[j] - p[k]);
        int b = (p[i] - p[k]) * (p[i] - p[k]);
        int c = (p[i] - p[j]) * (p[i] - p[j]);
        if (a > b + c || b > a + c || c > a + b) continue;
        pair<int, int> A = p[i], B = p[j], C = p[k];
        if (a < b) swap(A, B), swap(a, b);
        if (a < c) swap(A, C), swap(a, c);
        if (a == b + c) {
          pair<int, int> D = B + C - A;
          if (mp.count(D)) {
            double val = sqrt(a) / 2;
            if (can(0.5 * (B.first + C.first), 0.5 * (B.second + C.second),
                    val) &&
                ans < val)
              ans = val;
          }
        } else {
          pair<int, int> E = conj(C - A), F = conj(B - A), G = B - C;
          double t = 0.5 * (F ^ G) / (F ^ E), val;
          double first = 0.5 * (A.first + C.first) + t * E.first;
          double second = 0.5 * (A.second + C.second) + t * E.second;
          if (can(first, second,
                  val = sqrt((first - A.first) * (first - A.first) +
                             (second - A.second) * (second - A.second)))) {
            if (ans < val) ans = val;
          }
        }
      }
    }
  if (ans < 1e-8)
    puts("-1");
  else
    cout << fixed << setprecision(10) << ans << endl;
  return 0;
}