#include <bits/stdc++.h>
using namespace std;
int n;
double x[105], y[105], z[105];
int main() {
  int i, j, k;
  double xx, yy, zz, t, d, temp;
  while (scanf("%d", &n) != EOF) {
    for (i = 0; i < n; ++i) scanf("%lf%lf%lf", &x[i], &y[i], &z[i]);
    xx = yy = zz = 0;
    d = 1;
    for (i = 0; i < 15000; ++i) {
      t = -1;
      k = 0;
      for (j = 0; j < n; ++j) {
        temp = (x[j] - xx) * (x[j] - xx) + (y[j] - yy) * (y[j] - yy) +
               (z[j] - zz) * (z[j] - zz);
        if (temp > t) {
          t = temp;
          k = j;
        }
      }
      xx += (x[k] - xx) * d;
      yy += (y[k] - yy) * d;
      zz += (z[k] - zz) * d;
      d *= 0.999;
    }
    printf("%.7lf %.7lf %.7lf\n", xx, yy, zz);
  }
  return 0;
}
