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 JAVA):

Solution:
import java.util.Scanner;

//Malfatti Circles
public class Main{

	final double EPS = 1e-9, EPS2 = 1e-6;
	
	double dot(double[] a, double[] b){
		return a[0]*b[0]+a[1]*b[1];
	}
	double cross(double[] a, double[] b){
		return a[0]*b[1]-a[1]*b[0];
	}
	double norm(double[] a){
		return Math.hypot(a[0], a[1]);
	}
	double norm(double[] a, double[] b){
		return Math.hypot(a[0]-b[0], a[1]-b[1]);
	}
	double[] sub(double[] a, double[] b){
		return new double[]{a[0]-b[0], a[1]-b[1]};
	}
	double[] mid(double[] a, double[] b){
		return new double[]{(a[0]+b[0])/2, (a[1]+b[1])/2};
	}
	double area(double[] a, double[] b, double[] c){
		double res = cross(a, b)+cross(b, c)+cross(c, a);
		return Math.abs(res)/2;
	}
	double ex(double[] a, double[] b, double[] c){
		double[] s1 = sub(b, a), s2 = sub(c, a);
		return cross(s1, s2);
	}
	double angleTan(double[] a, double[] b){
		return Math.atan2(cross(a, b), dot(a, b));
	}
	double angleCos(double[] a, double[] b){
		double na = norm(a), nb = norm(b);
		return Math.acos(dot(a, b)/na/nb);
	}
	boolean crossing(double[] a, double[] b, double[] s, double[] t){
		if(Math.abs(cross(sub(b, a), sub(t, s)))<EPS){
			return Math.min(dist(a, b, s), Math.min(dist(a, b, t), Math.min(dist(s, t, a), dist(s, t, b))))<EPS;
		}
		if(ex(a, b, s)*ex(a, b, t)>0)return false;
		if(ex(b, a, s)*ex(b, a, t)>0)return false;
		if(ex(s, t, a)*ex(s, t, b)>0)return false;
		return ex(t, s, a)*ex(t, s, b)<EPS;
	}
	double dist(double[] a, double[] b, double[] p){
		if(dot(sub(b, a), sub(p, a))<EPS)return norm(a, p);
		if(dot(sub(a, b), sub(p, b))<EPS)return norm(b, p);
		return Math.abs(cross(sub(b, a), sub(p, a)))/norm(a, b);
	}
	double dist(double[] a, double[] b, double[] s, double[] t){
		if(crossing(a, b, s, t))return 0;
		return Math.min(dist(a, b, s), Math.min(dist(a, b, t), Math.min(dist(s, t, a), dist(s, t, b))));
	}
	double distLP(double[] a, double[] b, double[] p){
		return Math.abs(cross(sub(b, a), sub(p, a)))/norm(a, b);
	}
	double[] cp(double[] a, double[] b, double[] s, double[] t){
		double ds = distLP(a, b, s), dt = distLP(a, b, t);
		double k = ds/(ds+dt);
		double[] d = sub(t, s);
		return new double[]{s[0]+k*d[0], s[1]+k*d[1]};
	}
	double thita(double[] a, double[] b){
		return Math.atan2(cross(a, b), dot(a, b));
	}
	double[][] circleCrossPoint(double x1, double y1, double r1, double x2, double y2, double r2){
		double x = x2-x1, y = y2-y1;
		double S = x*x+y*y;
		double A = (S+r1*r1-r2*r2)/2;
		double[][] res = new double[2][2];
		res[0][0] = (A*x+y*Math.sqrt(S*r1*r1-A*A))/S; res[0][1] = (A*y-x*Math.sqrt(S*r1*r1-A*A))/S;
		res[1][0] = (A*x-y*Math.sqrt(S*r1*r1-A*A))/S; res[1][1] = (A*y+x*Math.sqrt(S*r1*r1-A*A))/S;
		return res;
	}
	
	double[][] p, d, q;
	double[] thita, CP, len, r;
	
	int check(double t){
		q[0][0] = p[0][0]+t*d[0][0];
		q[0][1] = p[0][1]+t*d[0][1];
		r[0] = dist(p[0], p[1], q[0]);
		double R2 = dist(p[1], p[2], q[0]);
		if(R2+EPS < r[0])return 1;
		search(1); search(2);
		//ここだけは緩めの許容誤差にしないと、いつまでたっても終わらない
		if(Math.abs(r[1]+r[2]-norm(q[1], q[2]))<EPS2)return 0;
		return r[1]+r[2] < norm(q[1], q[2])?1:-1;
	}
	
	void search(int k){
		double L = 0, R = len[k];
		for(int LOOP=0;LOOP<80&&R-L>EPS;LOOP++){
			double m = (L+R)/2;
			int c = checkSub(m, k);
			if(c==0)break;
			if(c<0)L = m;
			else R = m;
		}
	}
	
	int checkSub(double t, int k){
		q[k][0] = p[k][0]+t*d[k][0];
		q[k][1] = p[k][1]+t*d[k][1];
		r[k] = dist(p[k], p[(k+1)%3], q[k]);
		if(t < EPS)return -1;
		if(Math.abs(t-len[k])<EPS)return 1;
		double RK = dist(p[(k+1)%3], p[(k+2)%3], q[k]);
		if(RK+EPS < r[k])return 1;
		if(Math.abs(r[0]+r[k]-norm(q[0], q[k]))<EPS)return 0;
		return r[0]+r[k] < norm(q[0], q[k])?-1:1;
	}
	
	void run(){
		Scanner sc = new Scanner(System.in);
		for(;;){
			int X1 = sc.nextInt(), Y1 = sc.nextInt(), X2 = sc.nextInt(), Y2 = sc.nextInt(), X3 = sc.nextInt(), Y3 = sc.nextInt();
			if((X1|Y1|X2|Y2|X3|Y3)==0)break;
			p = new double[][]{{X1, Y1},{X2, Y2}, {X3, Y3}};
			thita = new double[3];
			d = new double[3][2];
			for(int i=0;i<3;i++){
				double[] subs = sub(p[(i+1)%3], p[i]), subt = sub(p[(i+2)%3], p[i]);
				double thita = angleTan(subs, subt)/2;
				d[i][0] = Math.cos(thita)*subs[0]-Math.sin(thita)*subs[1];
				d[i][1] = Math.sin(thita)*subs[0]+Math.cos(thita)*subs[1];
				double D = norm(d[i]);
				d[i][0]/=D; d[i][1]/=D;
			}
			double[] A = p[0], B = {p[0][0]+10000*d[0][0], p[0][1]+10000*d[0][1]}, C = p[1], D = {p[1][0]+10000*d[1][0], p[1][1]+10000*d[1][1]};
			CP = cp(A, B, C, D);
			len = new double[3];
			for(int i=0;i<3;i++)len[i] = norm(p[i], CP);
			q = new double[3][2];
			r = new double[3];
			double L = 0, R = len[0];
			for(;;){
				double m = (L+R)/2;
				int c = check(m);
				if(c==0)break;
				if(c<0)L = m;
				else R = m;
			}
			System.out.printf("%.6f %.6f %.6f\n", r[0], r[1], r[2]);
		}
	}
	
	public static void main(String[] args) {
		new Main().run();
	}
}