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<complex>
#include<cmath>
#define POINT_A 1
#define POINT_B 2
#define POINT_C 3
#define EPS 1.0e-6
using namespace std;
typedef long double elem;
typedef complex<elem> point, vec;
bool eq(elem a, elem b){return abs(a - b)<EPS; } 
vec normv(const vec &v){return v/abs(v);}
elem dist(const point &a, const point &b){return abs(a-b); }
elem dot(const vec &a, const vec &b){return a.real()*b.real()+a.imag()*b.imag();}
elem AreaOfTriangle(elem a, elem b, elem c){ elem s = (a+b+c)/2; return sqrt(s)*sqrt(s-a)*sqrt(s-b)*sqrt(s-c); }
elem InradiusOfTriangle(elem a, elem b, elem c){ return AreaOfTriangle(a,b,c) / (a+b+c); }
elem InradiusOfTriangleByMalfatti(elem r1, elem r2, elem r3){ return ( 2 * sqrt(r1*r2*r3) ) / ( sqrt(r1)+sqrt(r2)+sqrt(r3) - sqrt(r1+r2+r3) ); }
elem QueryR(point A, point B, point C, elem ka, elem Ra, int query){
	vec v1,v2,px,X,e;
	point p;
	
	X = ka * ( normv( normv(B-A) + normv(C-A) ) ) + A;
	if( query == POINT_B ){ v1 = A-B; v2 = C-B; p = B;
	}else if(  query == POINT_C ){ v1 = A-C; v2 = B-C; p = C; }
	px = X - p;
	e = normv( normv(v1) + normv(v2) );

	//cout << "E: " << e << " X: " << X << endl;

	elem sinH = sin( acos( dot(v1,v2) / (abs(v1)*abs(v2)) ) / 2 );
	elem a = 1 - ( 1 / pow(sinH,2) );
	elem b = Ra + dot(px,e)/sinH;
	elem c = pow(Ra,2)-pow(abs(px),2);

	elem candR1 = ( -b + sqrt( pow(b,2) - a*c ) ) / a;
	elem candR2 = ( -b - sqrt( pow(b,2) - a*c ) ) / a;

	//cout << "POINT " << p << "CAND R1: " << candR1 << " CAND R2: " << candR2 << endl;

	if( candR1 * candR2 < 0 )
		return max( candR1, candR2 );
	else
		return min( candR1, candR2 );
}
int main(){
	while(true){
		point A,B,C;				// ¸_
		elem a,b,c;					// ÎÓÌå«³
		elem sinAh, sinBh, sinCh;	// sin(A/2)ÈÇ
		elem ka,kb,kc;
		elem Ra, Rb, Rc;

		elem xa,ya,xb,yb,xc,yc;
		scanf("%Lf%Lf%Lf%Lf%Lf%Lf",&xa,&ya,&xb,&yb,&xc,&yc);
		if(xa==0.0&&ya==0.0&&xb==0.0&&yb==0.0&&xc==0.0&&yc==0.0)break;

		A=complex<elem>(xa,ya);B=complex<elem>(xb,yb);C=complex<elem>(xc,yc);
		a = abs( B-C ); b = abs( C-A ); c = abs( B-A );
		vec v1,v2;
		v1 = B - A; v2 = C - A; sinAh=sin( acos( dot(v1,v2) / (abs(v1)*abs(v2)) ) / 2 );
		v1 = A - B; v2 = C - B; sinBh=sin( acos( dot(v1,v2) / (abs(v1)*abs(v2)) ) / 2 );
		v1 = A - C; v2 = B - C; sinCh=sin( acos( dot(v1,v2) / (abs(v1)*abs(v2)) ) / 2 );

		/* binary serach */
		Ra = Rb = Rc = 0.0;
		elem l = 0;
		elem r = 2 * abs( ((c/(b+c))*(C-B) + B) - A );
		while( r > l + EPS )
		{
			elem m = (l+r)/2;
			//printf("L=%Lf M=%Lf R=%Lf Ra=%Lf Rb=%Lf Rc=%Lf\n", l,m,r,Ra,Rb,Rc);
			ka = m;
			Ra = sinAh * ka;
			Rb = QueryR(A,B,C,ka,Ra,POINT_B);
			Rc = QueryR(A,B,C,ka,Ra,POINT_C);
			kb = Rb / sinBh;
			kc = Rc / sinCh;
			vec BY = kb * normv( normv(A-B) + normv(C-B) );
			vec CZ = kc * normv( normv(A-C) + normv(B-C) );
			elem d = dist( B + BY, C + CZ );
			if( eq(d-(Rb+Rc),0.0) )
				break;
			else if( d > Rb + Rc ){
				r = m;
			}else{
				l = m;
			}
		}
		printf("%.5Lf %.5Lf %.5Lf\n", Ra, Rb, Rc);
	}
	return 0;
}