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 Codeforces1C {
	private static double gcd(double a, double b){
		if(a < 0.05) return b;
		if(b < 0.05) return a;
		return gcd(b, Math.abs(a-b*((int)(a/b))));
	}
	private static boolean isInteger(double d){
		if(Math.abs(d-((int)d))<0.01) return true;
		if(Math.abs(d-((int)d))>0.99) return true;
		return false;
	}
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		double[][] p = new double[3][2];
		for(int i=0;i<3;i++) for(int j=0;j<2;j++) p[i][j] = sc.nextDouble();
		double d = 0;
		double x = 0;
		double y = 0;
		for(int i=0;i<3;i++){
			d += 2*(p[i][0]*(p[(i+1)%3][1]-p[(i+2)%3][1]));
			x += (p[i][0]*p[i][0]+p[i][1]*p[i][1])*(p[(i+1)%3][1]-p[(i+2)%3][1]);
			y += (p[i][0]*p[i][0]+p[i][1]*p[i][1])*(p[(i+2)%3][0]-p[(i+1)%3][0]);
		}
		x /= d;
		y /= d;
		for(int i=0;i<3;i++){
			p[i][0] -= x;
			p[i][1] -= y;
		}
		double[] angles = new double[3];
		for(int i=0;i<3;i++){
			if(p[i][0]==0) angles[i] = Math.PI/2;
			else{
				angles[i] = Math.atan(p[i][1]/p[i][0]);
				if(p[i][0]<0) angles[i] += Math.PI;
				if(p[i][1]<0 && p[i][0]>0) angles[i] += 2*Math.PI;
			}
		}
		double a = Math.abs(angles[0]-angles[1]);
		double b = Math.abs(angles[1]-angles[2]);
		double c = Math.abs(angles[2]-angles[0]);
		double r = Math.sqrt(p[0][0]*p[0][0]+p[0][1]*p[0][1]);
		double theta = gcd(a,gcd(b,c));
		for(int i=1;i<99;i++){
			if(isInteger(2*Math.PI/theta*i)){
				theta /= i;
				break;
			}
		}
		System.out.println(Math.PI*r*r*Math.sin(theta)/theta);
		sc.close();
	}
}