#include <cstdio>
#include <cmath>
int n;
double x[1005], y[1005], X, Y, d, e;
double dist(double a, double b) {
return a*a + b*b;
}
int main() {
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%lf%lf", &x[i], &y[i]);
X += x[i]; Y += y[i];
}
X /= n; Y /= n;
double P = 0.1;
for (int i = 0; i < 30000; i++) {
int f = 0;
d = dist(X - x[0], Y - y[0]);
for (int j = 1; j < n; j++) {
e = dist(X - x[j], Y - y[j]);
if (d < e) { d = e; f = j; }
}
X += (x[f] - X)*P;
Y += (y[f] - Y)*P;
P *= 0.999;
}
printf("%.3lf %.3lf\n%.3lf", X, Y, sqrt(d));
}
I2luY2x1ZGUgPGNzdGRpbz4KI2luY2x1ZGUgPGNtYXRoPgppbnQgbjsKZG91YmxlIHhbMTAwNV0sIHlbMTAwNV0sIFgsIFksIGQsIGU7CmRvdWJsZSBkaXN0KGRvdWJsZSBhLCBkb3VibGUgYikgewoJcmV0dXJuIGEqYSArIGIqYjsKfQppbnQgbWFpbigpIHsKCXNjYW5mKCIlZCIsICZuKTsKCWZvciAoaW50IGkgPSAwOyBpIDwgbjsgaSsrKSB7CgkJc2NhbmYoIiVsZiVsZiIsICZ4W2ldLCAmeVtpXSk7CgkJWCArPSB4W2ldOyBZICs9IHlbaV07Cgl9CglYIC89IG47IFkgLz0gbjsKCWRvdWJsZSBQID0gMC4xOwoJZm9yIChpbnQgaSA9IDA7IGkgPCAzMDAwMDsgaSsrKSB7CgkJaW50IGYgPSAwOwoJCWQgPSBkaXN0KFggLSB4WzBdLCBZIC0geVswXSk7CgkJZm9yIChpbnQgaiA9IDE7IGogPCBuOyBqKyspIHsKCQkJZSA9IGRpc3QoWCAtIHhbal0sIFkgLSB5W2pdKTsKCQkJaWYgKGQgPCBlKSB7IGQgPSBlOyBmID0gajsgfQoJCX0KCQlYICs9ICh4W2ZdIC0gWCkqUDsKCQlZICs9ICh5W2ZdIC0gWSkqUDsKCQlQICo9IDAuOTk5OwoJfQoJcHJpbnRmKCIlLjNsZiAlLjNsZlxuJS4zbGYiLCBYLCBZLCBzcXJ0KGQpKTsKfQ==