#include <bits/stdc++.h>
int main() {
  int n, i, j, k, idx;
  double x, y, z, dx, dy, dz, dis_square, res, X[101], Y[101], Z[101];
  scanf("%d", &n);
  for (i = 0; i < n; i++) scanf("%lf %lf %lf", &X[i], &Y[i], &Z[i]);
  x = 0, y = 0, z = 0;
  for (i = 0; i < n; i++) x += X[i], y += Y[i], z += Z[i];
  x /= n, y /= n, z /= n;
  int lim = 10000;
  double multiplier = 1.0;
  while (lim--) {
    res = -1;
    for (i = 0; i < n; i++) {
      dx = x - X[i], dy = y - Y[i], dz = z - Z[i];
      dis_square = dx * dx + dy * dy + dz * dz;
      if (dis_square > res) res = dis_square, idx = i;
    }
    x += (X[idx] - x) * multiplier;
    y += (Y[idx] - y) * multiplier;
    z += (Z[idx] - z) * multiplier;
    multiplier *= 0.995;
  }
  printf("%0.12f %0.12f %0.12f\n", x + 1e-15, y + 1e-15, z + 1e-15);
  return 0;
}
