#include <bits/stdc++.h>
using namespace std;
typedef long double ld;
class Point{
public:
	ld x,y;
};
ld dist(Point a,Point b){
	return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));
}
class Line{
public:
	ld a,b,c;//ax+by=c
	Line(Point s,Point t){
		a=s.x-t.x;
		b=s.y-t.y;
		c=(s.x*s.x + s.y*s.y - t.x*t.x - t.y*t.y)/2.0;
	}
	void multi(ld x){
		a*=x;	b*=x;	c*=x;
	}
};
void solve(Line m,Line n,Point s){
	Point ret;
	ld tmp=m.b;
	m.multi(n.b);	n.multi(tmp);
	ret.x=(m.c-n.c)/(m.a-n.a);
	ret.y=(m.c-n.a*ret.x)/(m.b);
	printf("%.15lf %.15lf %.15lf\n",ret.x,ret.y,dist(ret,s));
}

int main(){
	Point s,t,u;	cin>>s.x>>s.y>>t.x>>t.y>>u.x>>u.y;
	Line m(s,t),n(t,u);
	solve(m,n,s);
	return 0;
}