#include <bits/stdc++.h>
using namespace std;
double x[101], y[101], z[101];
inline double abs(double x, double y, double z) {
  return sqrt(x * x + y * y + z * z);
}
int main() {
  int n;
  scanf("%d", &n);
  double xs = 0, ys = 0, zs = 0;
  for (int i = 0; i < n; i++) {
    scanf("%lf%lf%lf", x + i, y + i, z + i);
    xs += x[i];
    ys += y[i];
    zs += z[i];
  }
  double cx = xs / n, cy = ys / n, cz = zs / n;
  double sp = 1.0;
  while (sp > 1e-9) {
    for (int o = 0; o < 200; o++) {
      double mx = -1;
      int ind = -1;
      for (int i = 0; i < n; i++) {
        double len = abs(cx - x[i], cy - y[i], cz - z[i]);
        if (len > mx) {
          mx = len;
          ind = i;
        }
      }
      cx += (x[ind] - cx) * sp;
      cy += (y[ind] - cy) * sp;
      cz += (z[ind] - cz) * sp;
    }
    sp /= 2;
  }
  printf("%.9f %.9f %.9f\n", cx, cy, cz);
  return 0;
}
