#include <bits/stdc++.h>
using namespace std;
int n;
double x[110], y[110], z[110];
double cur[3];
const double eps = 1e-6;
const double maxcoord = 1e4;
double hypot3(double x, double y, double z) { return x * x + y * y + z * z; }
double trp(int i) {
  if (i == 3) {
    double dist = 0;
    for (int j = 0; j < n; j++)
      dist = max(dist, hypot3(x[j] - cur[0], y[j] - cur[1], z[j] - cur[2]));
    return dist;
  }
  double l = -maxcoord;
  double r = maxcoord;
  while (fabs(r - l) >= eps) {
    double c1 = l + (r - l) / 3;
    double c2 = l + 2 * (r - l) / 3;
    cur[i] = c1;
    double val1 = trp(i + 1);
    cur[i] = c2;
    double val2 = trp(i + 1);
    if (val1 < val2)
      r = c2;
    else
      l = c1;
  }
  cur[i] = (l + r) / 2;
  return trp(i + 1);
}
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> x[i] >> y[i] >> z[i];
  trp(0);
  for (int i = 0; i < 3; i++) printf("%.10lf ", cur[i]);
  return 0;
}
