#include <bits/stdc++.h>
using namespace std;
long long n;
long double x[105], y[105], z[105], origin_x, origin_y, origin_z, far_dist,
    curr_dist;
long double dist(long double a, long double b, long double c) {
  return a * a + b * b + c * c;
}
int main(int argc, char* argv[]) {
  ios::sync_with_stdio(false);
  cin >> n;
  long long tx, ty, tz;
  for (long long i = 0; i < n; i++) {
    cin >> tx >> ty >> tz;
    x[i] = tx;
    y[i] = ty;
    z[i] = tz;
    origin_x += x[i];
    origin_y += y[i];
    origin_z += z[i];
  }
  origin_x /= n;
  origin_y /= n;
  origin_z /= n;
  long double step = 0.05;
  for (long long i = 0; i < 30000; i++) {
    long long far_index = 0;
    far_dist = dist(origin_x - x[0], origin_y - y[0], origin_z - z[0]);
    for (long long j = 1; j < n; j++) {
      curr_dist = dist(origin_x - x[j], origin_y - y[j], origin_z - z[j]);
      if (far_dist < curr_dist) {
        far_dist = curr_dist;
        far_index = j;
      }
    }
    origin_x += (x[far_index] - origin_x) * step;
    origin_y += (y[far_index] - origin_y) * step;
    origin_z += (z[far_index] - origin_z) * step;
    step *= 0.999;
  }
  cout << origin_x << " " << origin_y << " " << origin_z;
  return 0;
}
