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.*;import java.math.*;public class Main{class P{double x;double y;P(double x,double y){this.x=x;this.y=y;}P add(P a){return new P(x+a.x,y+a.y);}P mul(double a){return new P(x*a,y*a);}double abs(){return Math.sqrt(x*x+y*y);}}Scanner sc=new Scanner(System.in);void run(){for(;;){P[]p=new P[3];double v=0;for (int i=0;i<3;i++){p[i]=new P(sc.nextDouble(),sc.nextDouble());v+=Math.abs(p[i].x)+Math.abs(p[i].y);}if(v<1){break;}P[]t=new P[3];double len[]=new double[3];for (int i=0;i<3;i++){P p1=p[(i+1)%3].add(p[i].mul(-1));P p2=p[(i+2)%3].add(p[i].mul(-1));double p1l=p1.abs();double p2l=p2.abs();P np1=p1.mul(1/p1l);P np2=p2.mul(1 / p2l);P tt=np1.add(np2);t[i]=tt.mul(1/tt.abs());len[i]=Math.min(p1.abs(),p2.abs());}double min=0;double max=len[0];P a[]=new P[3];double r[]=new double[3];for(;;){if(Math.abs(min-max)<1e-6) {break;}double p0=(min+max)/2;a[0]=t[0].mul(p0).add(p[0]);{P org=p[0].mul(-1);P a0=a[0].add(org);P p1 = p[1].add(org);
					double lp1 = p1.abs();
					P p1v = p1.mul(1 / lp1);

					double dot = a0.x * p1v.x + a0.y * p1v.y;

					r[0] = Math.sqrt(p0 * p0 - dot * dot);
				}

				double min1 = 0;
				double max1 = len[1];
				for (;;) {if (Math.abs(min1 - max1) < 1e-6) {
break;}
		double p1 = (min1 + max1) / 2;
					a[1] = t[1].mul(p1).add(p[1]);

					{
						P org = p[1].mul(-1);

						P a0 = a[1].add(org);
						P p2 = p[0].add(org);
						double lp1 = p2.abs();
						P p1v = p2.mul(1 / lp1);

						double dot = a0.x * p1v.x + a0.y * p1v.y;

						r[1] = Math.sqrt(p1 * p1 - dot * dot);
					}


					double diff = a[1].mul(-1).add(a[0]).abs();

					if (diff < r[1] + r[0]) {
						max1 = p1;
					} else {
						min1 = p1;
					}
				}

				double min2 = 0;
				double max2 = len[2];
				for (;;) {
					if (Math.abs(min2 - max2) < 1e-6) {
						break;
					}
					double p1 = (min2 + max2) / 2;
					a[2] = t[2].mul(p1).add(p[2]);

					{
						P org = p[2].mul(-1);

						P a0 = a[2].add(org);
						P p2 = p[0].add(org);
						double lp1 = p2.abs();
						P p1v = p2.mul(1 / lp1);

						double dot = a0.x * p1v.x + a0.y * p1v.y;

						r[2] = Math.sqrt(p1 * p1 - dot * dot);
					}

					double diff = a[2].mul(-1).add(a[0]).abs();

					if (diff < r[2] + r[0]) {
						max2 = p1;
					} else {
						min2 = p1;
					}
				}


				double diff = a[2].mul(-1).add(a[1]).abs();
				if (diff > r[2] + r[1]) {
					max = p0;
					// System.out.println(" < "+r[0]);
				} else {
					min = p0;
					// System.out.println(" > "+r[0]);
				}

			}
			System.out.println(r[0] + " " + r[1] + " " + r[2]);
		}

	}

	public static void main(String[] args) {
		Main m = new Main();
		m.run();
	}
}