#include<stdio.h>
#include<math.h>
#define P(x) pow(double(x),2)

int n;
double x[3],y[3];
double *xp,*yp,*r;


void c_xpypr(){
	double a1,a2,b1,b2,c1,c2,xa,ya;
	a1=2*(x[1]-x[0]);
	a2=2*(x[2]-x[1]);
	b1=2*(y[1]-y[0]);
	b2=2*(y[2]-y[1]);
	c1=(P(x[0])-P(x[1])+P(y[0])-P(y[1]));
	c2=(P(x[1])-P(x[2])+P(y[1])-P(y[2]));

	xa=(b1*c2-b2*c1)/(a1*b2-a2*b1);
	ya=(c1*a2-c2*a1)/(a1*b2-a2*b1);
	
	*xp=xa;
	*yp=ya;
	*r= (double)(sqrt((long double)(((xa-x[0])*(xa-x[0]))+((ya-y[0])*(ya-y[0])))));

}


int main(){


	int i,j,k;


	while((scanf("%d",&n))!=EOF){
		for(i=0;i<3;i++){
			scanf("%lf",&x[i]);
			scanf("%lf",&y[i]);
		}

		void c_xpypr();


		printf("%.3f %.3f %.3f\n",xp,yp,r);

	}



}