Problem: The Galaxy contains n planets, there are many different living creatures inhabiting each planet. And each creature can get into troubles! Space rescuers know it perfectly well and they are always ready to help anyone who really needs help. All you need to do is call for them. 

Now the space rescuers plan to build the largest in the history of the Galaxy rescue station; however, the rescue station's location is yet to be determined. As some cases are real emergencies, the rescuers want to find such a point in the Galaxy from which it would be possible to get to the remotest planet in the minimum possible time. In other words, the rescuers need such point in the space that the distance between it and the planet remotest from it was minimal (if we compare this point with all other possible points in the space). Unfortunately, the rescuers can't sole this problem.

As the planets are quite remote from each other, they can be considered as points in Euclidean three-dimensional space. The distance between points (xi, yi, zi) and (xj, yj, zj) can be calculated by the formula <image>. The rescue station can be positioned in any point in the space. It can also coincide with some planet. 

Galaxy is in danger! Save the space rescuers and find the required point for them.

Input

The first line of the input file contains integer n — the number of planets (1 ≤ N ≤ 100). Each of the following n lines contains information about the planets. The i-th line contains three integers xi, yi, zi — the coordinates of the i-th planet ( - 104 ≤ xi, yi, zi ≤ 104, 1 ≤ i ≤ n). No two planets coincide.

Output

Print on the first line of the output file three space-separated real numbers x0, y0, z0 — the coordinates for the future base. If there are several solutions, you are allowed to print any of them. The answer will be accepted if the distance from this point to the remotest planet will differ from the juries' variant in no more than 10 - 6 in absolute or relative value.

Examples

Input

5
5 0 0
-5 0 0
0 3 4
4 -3 0
2 2 -2


Output

0.000 0.000 0.000

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:36777216")
using namespace std;
const double pi = acos(-1.0);
const double eps = 1e-11;
const int oo = 0x3f3f3f3f;
const long long ooLL = 0x3F3F3F3F3F3F3F3F;
using VI = vector<int>;
using VII = vector<VI>;
using VS = vector<string>;
using int64 = long long;
using LD = long double;
using PI = pair<int, int>;
using PD = pair<double, double>;
template <class T>
inline void checkmin(T& a, T b) {
  if (b < a) a = b;
}
template <class T>
inline void checkmax(T& a, T b) {
  if (b > a) a = b;
}
template <class T>
inline T sqr(T x) {
  return x * x;
}
template <class T>
inline int countbit(T n) {
  return ((n ^ (n - 1)) & n);
}
template <class T>
inline T gcd(T a, T b) {
  T c;
  while (a != 0) {
    c = a;
    a = b % a;
    b = c;
  }
  return b;
}
template <class T>
inline T mabs(T a) {
  return (a < 0 ? -a : a);
}
const int N = (int)2511;
const int MOD = (int)1e9 + 7;
const int ITER = 59;
const LD L = -1e4 - 5, R = 1e4 + 5;
template <typename T = int>
struct Point {
  T x, y, z;
  Point() { x = y = z = 0.0; }
  Point(T _x, T _y, T _z) : x(_x), y(_y), z(_z) {}
  inline LD dist(const Point<T>& o) const {
    auto sq = [&](T a) -> LD { return (a * a); };
    return sqrtl(sq(x - o.x) + sq(y - o.y) + sq(z - o.z));
  }
};
using PTD = Point<LD>;
int n;
vector<PTD> pts;
LD x = LDBL_MIN, y = LDBL_MIN, z = LDBL_MIN;
inline LD maxd(LD x, LD y, LD z) {
  LD res = 0.0;
  PTD p1(x, y, z);
  for (auto p2 : pts) {
    LD d = p1.dist(p2);
    if (d > res) res = d;
  }
  return res;
}
inline LD g(LD x, LD y) {
  LD l = L, r = R;
  for (int iter = 0; iter < ITER; iter++) {
    LD lm = (2 * l + r) / 3;
    LD rm = (l + 2 * r) / 3;
    if (maxd(x, y, lm) > maxd(x, y, rm))
      l = lm;
    else
      r = rm;
  }
  z = l;
  return maxd(x, y, l);
}
inline LD f(LD x) {
  LD l = L, r = R;
  for (int iter = 0; iter < ITER; iter++) {
    LD lm = (2 * l + r) / 3;
    LD rm = (l + 2 * r) / 3;
    if (g(x, lm) > g(x, rm))
      l = lm;
    else
      r = rm;
  }
  y = l;
  return g(x, l);
}
inline void doit(int n) {
  LD l = L, r = R;
  for (int iter = 0; iter < ITER; iter++) {
    LD lm = (2 * l + r) / 3;
    LD rm = (l + 2 * r) / 3;
    if (f(lm) > f(rm))
      l = lm;
    else
      r = rm;
  }
  x = l;
  f(x);
  g(x, y);
  cout << fixed << setprecision(12);
  cout << x << " " << y << " " << z << "\n";
}
int solve(int testnum) {
  cin >> n;
  pts.resize(n);
  for (int i = (0); i < int(n); i++) cin >> pts[i].x >> pts[i].y >> pts[i].z;
  doit(n);
  return 0;
}
int main(int argc, char* argv[]) {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  if (argc > 1) t = atoi(argv[1]);
  for (int _t = (1); _t < int(t + 1); _t++) {
    int ret = solve(_t);
    if (ret == -1) {
      cerr << "Failed test #" << _t << '\n';
      break;
    }
  }
  return 0;
}