#include <bits/stdc++.h>
using namespace std;
double x[150], y[150], z[150], a = 0, b = 0, c = 0;
double dist(double x, double y, double z) { return x * x + y * y + z * z; }
int main() {
  int i, n, ij, j;
  double bit = 1, t, temp;
  cin >> n;
  for (i = 1; i <= n; i++) cin >> x[i] >> y[i] >> z[i];
  for (i = 1; i <= 50000; i++) {
    t = -1;
    ij = 0;
    for (j = 1; j <= n; j++) {
      temp = dist(x[j] - a, y[j] - b, z[j] - c);
      if (temp > t) {
        t = temp;
        ij = j;
      }
    }
    a += bit * (x[ij] - a);
    b += bit * (y[ij] - b);
    c += bit * (z[ij] - c);
    bit *= 0.998;
  }
  printf("%.10f %.10f %.10f\n", a, b, c);
}
