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<bits/stdc++.h>
typedef long long int ll;
typedef unsigned long long int ull;
#define BIG_NUM 2000000000
#define HUGE_NUM 99999999999999999
#define MOD 1000000007
#define EPS 0.000000001
using namespace std;


struct Point{
	void set(double arg_x,double arg_y){
		x = arg_x;
		y = arg_y;
	}
	double x,y;
};

int X1,X2,X3,Y1,Y2,Y3;
Point A,B,C,center;
Point face_A,face_B,face_C;
double len_A,len_B,len_C;
double half_len_sum,S;
double inner_R;
double dist1,dist2,dist3;
double R1,R2,R3;


//交点を求める関数
Point calc_Cross_Point(double x1,double x2,double x3,double x4,double y1,double y2,double y3,double y4){
	Point ret;
	ret.x = ((x2-x1)*(y3*(x4-x3)+x3*(y3-y4))-(x4-x3)*(y1*(x2-x1)+x1*(y1-y2)))/((y2-y1)*(x4-x3)-(y4-y3)*(x2-x1));
	if(x1 != x2){
		ret.y = ((y2-y1)*ret.x+y1*(x2-x1)+x1*(y1-y2))/(x2-x1);
	}else{
		ret.y = ((y4-y3)*ret.x+y3*(x4-x3)+x3*(y3-y4))/(x4-x3);
	}
	return ret;
}

//インタフェース関数
Point calc_Cross_Point(Point a,Point b,Point c,Point d){
	return calc_Cross_Point(a.x,b.x,c.x,d.x,a.y,b.y,c.y,d.y);
}

double calc_dist(Point a,Point b){
	return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));
}

void func(){

	A.set(X1,Y1);
	B.set(X2,Y2);
	C.set(X3,Y3);

	len_A = calc_dist(B,C);
	len_B = calc_dist(C,A);
	len_C = calc_dist(A,B);

	//総長の半分
	half_len_sum = (len_A+len_B+len_C)/2;
	S = sqrt(half_len_sum*(half_len_sum-len_A)*(half_len_sum-len_B)*(half_len_sum-len_C));

	//内接円の半径
	inner_R = (2.0*S)/(len_A+len_B+len_C);

	 //各頂点から角の二等分線を伸ばす
	 face_A.x = (len_B*B.x+len_C*C.x)/(len_B+len_C);
	 face_A.y = (len_B*B.y+len_C*C.y)/(len_B+len_C);

	 face_B.x = (len_C*C.x+len_A*A.x)/(len_A+len_C);
	 face_B.y = (len_C*C.y+len_A*A.y)/(len_A+len_C);

	 //内心円の座標は、角の二等分線の交点
	 center = calc_Cross_Point(A,face_A,B,face_B);

	 //内心と各頂点への距離
	 dist1 = calc_dist(center,A);
	 dist2 = calc_dist(center,B);
	 dist3 = calc_dist(center,C);

	 //公式
	 R1 = inner_R/(2.0*(half_len_sum-len_A))*(half_len_sum+dist1-inner_R-dist2-dist3);
	 R2 = inner_R/(2.0*(half_len_sum-len_B))*(half_len_sum+dist2-inner_R-dist1-dist3);
	 R3 = inner_R/(2.0*(half_len_sum-len_C))*(half_len_sum+dist3-inner_R-dist1-dist2);

	 printf("%.10lf %.10lf %.10lf\n",R1,R2,R3);
}

int main(){

	while(true){
		scanf("%d %d %d %d %d %d",&X1,&Y1,&X2,&Y2,&X3,&Y3);
		if(X1 == 0 && Y1 == 0 && X2 == 0 && Y2 == 0 && X3 == 0 && Y3 == 0)break;

		func();
	}

	return 0;
}