Problem: Nowadays all circuses in Berland have a round arena with diameter 13 meters, but in the past things were different.

In Ancient Berland arenas in circuses were shaped as a regular (equiangular) polygon, the size and the number of angles could vary from one circus to another. In each corner of the arena there was a special pillar, and the rope strung between the pillars marked the arena edges.

Recently the scientists from Berland have discovered the remains of the ancient circus arena. They found only three pillars, the others were destroyed by the time.

You are given the coordinates of these three pillars. Find out what is the smallest area that the arena could have.

Input

The input file consists of three lines, each of them contains a pair of numbers –– coordinates of the pillar. Any coordinate doesn't exceed 1000 by absolute value, and is given with at most six digits after decimal point.

Output

Output the smallest possible area of the ancient arena. This number should be accurate to at least 6 digits after the decimal point. It's guaranteed that the number of angles in the optimal polygon is not larger than 100.

Examples

Input

0.000000 0.000000
1.000000 1.000000
0.000000 1.000000


Output

1.00000000

Solution (in JAVA):

Solution:
import java.util.Scanner;

public class Task1c {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double p1x = sc.nextDouble();
		double p1y = sc.nextDouble();
		double p2x = sc.nextDouble();
		double p2y = sc.nextDouble();
		double p3x = sc.nextDouble();
		double p3y = sc.nextDouble();
		
		double v1x = -1 *(p2y - p1y); 
		double v1y = 1 * (p2x - p1x);
		
		double v2x = -1 *(p3y - p1y);
		double v2y = 1 *(p3x - p1x);
		
		double s1x = 0.5*(p1x + p2x);
		double s1y = 0.5*(p1y + p2y);
		double s2x = 0.5*(p1x + p3x);
		double s2y = 0.5*(p1y + p3y);
		
		double l = (s1x*v1y - s1y*v1x + s2y*v1x - s2x*v1y) / (v2x*v1y - v2y*v1x);
		
		double cx = s2x + l*v2x;
		double cy = s2y + l*v2y;
		
		double dc2 = ((cx - p1x)*(cx - p1x) + (cy - p1y)*(cy - p1y));
		double d1 = ((p2x - p1x)*(p2x - p1x) + (p2y - p1y)*(p2y - p1y));
		double d2 = ((p3x - p1x)*(p3x - p1x) + (p3y - p1y)*(p3y - p1y));
		double d3 = ((p3x - p2x)*(p3x - p2x) + (p3y - p2y)*(p3y - p2y));
		
		double an1 = Math.acos((2*dc2 - d1)/(2*dc2)) * 180 / Math.PI;
		double an2 = Math.acos((2*dc2 - d2)/(2*dc2)) * 180 / Math.PI;
		double an3 = Math.acos((2*dc2 - d3)/(2*dc2)) * 180 / Math.PI;
		
		for (int i = 3; i <= 100; i++) {
			double curr = 360.0 / i;
			double c1 = an1 / curr;
			if (Math.abs(c1 - Math.round(c1)) > 1e-3) continue;
			double c2 = an2 / curr;
			if (Math.abs(c2 - Math.round(c2)) > 1e-3) continue;
			double c3 = an3 / curr;
			if (Math.abs(c3 - Math.round(c3)) > 1e-3) continue;
			double S = i * 0.5 * dc2 * Math.sin(curr * Math.PI / 180);
			System.out.printf("%.8f\n", S);
			return;
		}
		double S = 100 * 0.5 * dc2 * Math.sin(3.6 * Math.PI / 180);
		System.out.printf("%.8f\n", S);
	}

}