Problem: The configuration of three circles packed inside a triangle such that each circle is tangent to the other two circles and to two of the edges of the triangle has been studied by many mathematicians for more than two centuries. Existence and uniqueness of such circles for an arbitrary triangle are easy to prove. Many methods of numerical calculation or geometric construction of such circles from an arbitrarily given triangle have been discovered. Today, such circles are called the Malfatti circles.

Figure 7 illustrates an example. The Malfatti circles of the triangle with the vertices (20, 80), (-40, -20) and (120, -20) are approximately

* the circle with the center (24.281677, 45.219486) and the radius 21.565935,
* the circle with the center (3.110950, 4.409005) and the radius 24.409005, and
* the circle with the center (54.556724, 7.107493) and the radius 27.107493.



Figure 8 illustrates another example. The Malfatti circles of the triangle with the vertices (20, -20), (120, -20) and (-40, 80) are approximately

* the circle with the center (25.629089, −10.057956) and the radius 9.942044,
* the circle with the center (53.225883, −0.849435) and the radius 19.150565, and
* the circle with the center (19.701191, 19.203466) and the radius 19.913790.



Your mission is to write a program to calculate the radii of the Malfatti circles of the given triangles.

<image>



Input

The input is a sequence of datasets. A dataset is a line containing six integers x1, y1 , x2 , y2, x3 and y3 in this order, separated by a space. The coordinates of the vertices of the given triangle are (x1 , y1 ), (x2 , y2 ) and (x3 , y3 ), respectively. You can assume that the vertices form a triangle counterclockwise. You can also assume that the following two conditions hold.

* All of the coordinate values are greater than −1000 and less than 1000.
* None of the Malfatti circles of the triangle has a radius less than 0.1.



The end of the input is indicated by a line containing six zeros separated by a space.

Output

For each input dataset, three decimal fractions r1 , r2 and r3 should be printed in a line in this order separated by a space. The radii of the Malfatti circles nearest to the vertices with the coordinates (x1 , y1 ), (x2 , y2 ) and (x3 , y3 ) should be r1 , r2 and r3 , respectively.

None of the output values may have an error greater than 0.0001. No extra character should appear in the output.

Example

Input

20 80 -40 -20 120 -20
20 -20 120 -20 -40 80
0 0 1 0 0 1
0 0 999 1 -999 1
897 -916 847 -972 890 -925
999 999 -999 -998 -998 -999
-999 -999 999 -999 0 731
-999 -999 999 -464 -464 999
979 -436 -955 -337 157 -439
0 0 0 0 0 0


Output

21.565935 24.409005 27.107493
9.942044 19.150565 19.913790
0.148847 0.207107 0.207107
0.125125 0.499750 0.499750
0.373458 0.383897 0.100456
0.706768 0.353509 0.353509
365.638023 365.638023 365.601038
378.524085 378.605339 378.605339
21.895803 22.052921 5.895714

Solution (in CPP):

Solution:
#include <iostream>
#include <cstdio>
#include <complex>
#include <cmath>
#include <vector>
#define rep(i,n) for(int i=0;i<n;++i)
#define fs first
#define sc second
using namespace std;
typedef double D;
typedef complex<D> P;
typedef pair<P,P> L;
typedef vector<P> Pol;
double x[3],y[3],eps=1e-10;
P p[3],m[3],ran=P(1048576,1048576);
Pol tri;
bool eq(D a, D b) { return abs(a-b)<eps;}
inline D cro(P a,P b){
	return imag(conj(a)*b);
}
inline int ccw (P a, P b, P c){
	if(cro(b-a,c-a)>eps) return 1;
	if(cro(b-a,c-a)<-eps) return -1;
	if(eq(abs(a-c)+abs(c-b),abs(a-b))) return 0;
	if(eq(abs(a-b)+abs(b-c),abs(a-c))) return -2;
	if(eq(abs(c-a)+abs(a-b),abs(c-b))) return 2;
}
enum ENCONT{INP=1,ONP=0,OUTP=-1};
int contain(Pol pol, P p){
	bool in=false;
	rep(i,pol.size()){
		P a=pol[i]-p,b=pol[(i+1)%pol.size()]-p;
		if(ccw(a,b,P(0,0))==0) return ONP;
		if(imag(a)>imag(b)) swap(a,b);
		if(imag(a)<eps && eps<imag(b) && ccw(P(0,0),a,b)==1) in=!in;
	}
	return in ? INP : OUTP;
}
inline D verlength(L l,P p){
	return abs(cro(l.fs-l.sc,p-l.sc)/abs(l.fs-l.sc));
}
bool containC(Pol tri,P p,L l,D r){
	return (contain(tri,p)==1)&&verlength(l,p)>r;
}
P decidec2(P c1,D r1){
	double ub=100000,lb=0;
	P c2;
	D r2;
	while(ub-lb>eps){
		double mid=(ub+lb)/2;
		c2=p[1]+mid*m[1];
		r2=verlength(L(p[1],p[2]),c2);
		if(!containC(tri,c2,L(p[2],p[0]),r2)){
			ub=mid;
			continue;
		}
		if(abs(c1-c2)>r1+r2) lb=mid;
		else ub=mid;
	}
//	cout<<ub<<"   "<<abs(c1-c2)<<" "<<r1+r2<<endl;
//	if(abs(abs(c1-c2)-(r1+r2))>1e-5) return ran;
	return c2;
}
P decidec3(P c2,D r2){
	double ub=100000,lb=0;
	P c3;
	while(ub-lb>eps){
		double mid=(ub+lb)/2;
		c3=p[2]+mid*m[2];
		D r3=verlength(L(p[2],p[0]),c3);
		if(!containC(tri,c3,L(p[0],p[1]),r3)){
			ub=mid;
			continue;
		}
		if(abs(c2-c3)>r2+r3) lb=mid;
		else ub=mid;
	}
	return c3;
}
int main(){
	while(true){
		rep(i,3) cin>>x[i]>>y[i];
		rep(i,3) p[i]=P(x[i],y[i]);
		if(p[0]==p[1]) break;
		tri.clear();
		rep(i,3) tri.push_back(p[i]);
		rep(i,3){
			int cu=i,ne1=(i+1)%3,ne2=(i+2)%3;
			P a=p[ne1]-p[cu],b=p[ne2]-p[cu];
			a/=abs(a);
			b/=abs(b);
			m[i]=a+b;
			m[i]/=abs(m[i]);
		}
		double ub=100000,lb=0;
		D r1,r2,r3;
		P c1,c2,c3;
		while(ub-lb>eps){
			double mid=(ub+lb)/2;
			c1=p[0]+mid*m[0];
			r1=verlength(L(p[0],p[1]),c1);
			if(!containC(tri,c1,L(p[1],p[2]),r1)){
				ub=mid;
				continue;
			}
/*			if(r1<0.01){
				lb=mid;
				continue;
			}*/
			c2=decidec2(c1,r1);
//			cout<<"c1 "<<c1<<endl;
//			cout<<"r1 "<<r1<<endl;
//			cout<<"c2 "<<c2<<endl;
			r2=verlength(L(p[1],p[2]),c2);
/*			if(r2<0.01){
				ub=mid;
				continue;
			}*/
			c3=decidec3(c2,r2);
			r3=verlength(L(p[2],p[0]),c3);
/*			if(r3<0.01){
				lb=mid;
				continue;
			}*/
			if(abs(c3-c1)>r3+r1) lb=mid;
			else ub=mid;
//			cout<<"c3 "<<c3<<endl;
		}
//		cout<<"dist(c1,c2)= "<<abs(c1-c2)<<endl;
//		cout<<"dist(c2,c3)= "<<abs(c2-c3)<<endl;
//		cout<<"dist(c3,c1)= "<<abs(c3-c1)<<endl;
		printf("%.10f %.10f %.10f\n",r1,r2,r3);
	}
}