#include <bits/stdc++.h>
using namespace std;
double x[111], y[111], z[111], X, Y, Z, X0, Y0, Z0;
double KC(double a, double b, double c) {
  return (X - a) * (X - a) + (Y - b) * (Y - b) + (Z - c) * (Z - c);
}
int main() {
  int test = 1, n;
  for (int itest = 1; itest <= test; itest++) {
    scanf("%d", &n);
    for (int i = 1; i <= n; i++) {
      scanf("%lf %lf %lf", &x[i], &y[i], &z[i]);
    }
    X = 0, Y = 0, Z = 0;
    if (n == 1) {
      printf("%.16lf %.16lf %.16lf\n", x[1], y[1], z[1]);
      return 0;
    }
    double cong = 1, MAX, d;
    int vitri;
    for (int run = 0; run <= 1000000; ++run) {
      MAX = -1;
      for (int i = 1; i <= n; i++) {
        if (KC(x[i], y[i], z[i]) > MAX) {
          MAX = KC(x[i], y[i], z[i]);
          vitri = i;
        }
      }
      d = sqrt(KC(x[vitri], y[vitri], z[vitri]));
      X += (x[vitri] - X) * cong;
      Y += (y[vitri] - Y) * cong;
      Z += (z[vitri] - Z) * cong;
      cong *= 0.997;
    }
    printf("%.16lf %.16lf %.16lf\n", X, Y, Z);
  }
  return 0;
}
