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 n;
pair<int, int> a[105];
double ans = -1;
bool check(double r, double x, double y) {
  for (int t = 0; t < n; t++) {
    double h = sqrt(((a[t].first - x) * (a[t].first - x)) +
                    ((a[t].second - y) * (a[t].second - y)));
    if (r - h > 1e-5) return false;
  }
  return true;
}
bool have(pair<int, int> x) {
  for (int i = 0; i < n; i++)
    if (a[i] == x) return true;
  return false;
}
bool pan(pair<int, int> a, pair<int, int> b, pair<int, int> c) {
  long long L1 = ((a.first - b.first) * (a.first - b.first)) +
                 ((a.second - b.second) * (a.second - b.second)),
            L2 = ((c.first - b.first) * (c.first - b.first)) +
                 ((c.second - b.second) * (c.second - b.second)),
            L3 = ((a.first - c.first) * (a.first - c.first)) +
                 ((a.second - c.second) * (a.second - c.second));
  pair<int, int> d;
  if (L1 + L2 == L3)
    d = make_pair(a.first + c.first - b.first, a.second + c.second - b.second);
  if (L1 + L3 == L2)
    d = make_pair(b.first + c.first - a.first, b.second + c.second - a.second);
  if (L2 + L3 == L1)
    d = make_pair(a.first + b.first - c.first, a.second + b.second - c.second);
  if ((L1 + L2 == L3 || L1 + L3 == L2 || L2 + L3 == L1) && have(d)) {
    double x = a.first + b.first + c.first + d.first,
           y = a.second + b.second + c.second + d.second;
    x /= 4, y /= 4;
    double r = sqrt(((a.first - x) * (a.first - x)) +
                    ((a.second - y) * (a.second - y)));
    if (check(r, x, y)) ans = max(ans, r);
  }
  return L1 + L2 <= L3 || L1 + L3 <= L2 || L2 + L3 <= L1;
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d%d", &a[i].first, &a[i].second);
  for (int i = 0; i < n; i++)
    for (int j = i + 1; j < n; j++)
      for (int k = j + 1; k < n; k++) {
        if (pan(a[i], a[j], a[k])) continue;
        long long a1, b1, c1, a2, b2, c2;
        a1 = 2 * a[j].first - 2 * a[i].first;
        b1 = 2 * a[j].second - 2 * a[i].second;
        c1 = ((a[j].first) * (a[j].first)) - ((a[i].first) * (a[i].first)) +
             ((a[j].second) * (a[j].second)) - ((a[i].second) * (a[i].second));
        a2 = 2 * a[j].first - 2 * a[k].first;
        b2 = 2 * a[j].second - 2 * a[k].second;
        c2 = ((a[j].first) * (a[j].first)) - ((a[k].first) * (a[k].first)) +
             ((a[j].second) * (a[j].second)) - ((a[k].second) * (a[k].second));
        double x = (c1 * 1.0 * b2 - c2 * 1.0 * b1) / (a1 * b2 - a2 * b1);
        double y = (c1 * 1.0 * a2 - c2 * 1.0 * a1) / (b1 * a2 - b2 * a1);
        double r = sqrt(((a[i].first - x) * (a[i].first - x)) +
                        ((a[i].second - y) * (a[i].second - y)));
        if (check(r, x, y)) ans = max(r, ans);
      }
  if (ans < 0)
    printf("-1\n");
  else
    printf("%8f\n", ans);
  return 0;
}