#include <bits/stdc++.h>
using namespace std;
double Dist(double x1, double y1, double z1, double x2, double y2, double z2) {
  return sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2) +
              (z1 - z2) * (z1 - z2));
}
int main() {
  int n;
  cin >> n;
  int *x = new int[n];
  int *y = new int[n];
  int *z = new int[n];
  double rx = 0.0, ry = 0.0, rz = 0.0;
  for (int i = 0; i < n; ++i) {
    cin >> x[i] >> y[i] >> z[i];
    rx += x[i];
    ry += y[i];
    rz += z[i];
  }
  rx /= double(n);
  ry /= double(n);
  rz /= double(n);
  double p = 0.5;
  for (int stp = 0; stp < 50000; ++stp) {
    int idx = 0;
    double dist = Dist(rx, ry, rz, x[0], y[0], z[0]);
    for (int i = 1; i < n; ++i) {
      double ndist = Dist(rx, ry, rz, x[i], y[i], z[i]);
      if (ndist > dist) {
        dist = ndist;
        idx = i;
      }
    }
    rx += p * (x[idx] - rx);
    ry += p * (y[idx] - ry);
    rz += p * (z[idx] - rz);
    p *= 0.999;
  }
  printf("%lf %lf %lf\n", rx, ry, rz);
  return 0;
}
