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.io.*;
import java.lang.reflect.Array;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.StringTokenizer;
import java.util.regex.Matcher;
import java.util.regex.Pattern;


public class BinarySearch
{	
	Double[][] array = new Double[3][2];
	Double[] angles = new Double[3];
	
	Double[][] vector = new Double[2][2];
	
	BufferedReader in;
	StringTokenizer tokenizer;
	PrintWriter out;
	public double len (int index) {
		return Math.sqrt(array[index][0]*array[index][0]+array[index][1]*array[index][1]);
	}
	public double vectorLen (int index) {
		return Math.sqrt(vector[index][0]*vector[index][0]+vector[index][1]*vector[index][1]);
	}
	boolean comp (double wow) {

		boolean a1 = Math.abs(angles[0]-wow*Math.round(angles[0]/wow)) < (double)0.0001;
		boolean a2 = Math.abs(angles[1]-wow*Math.round(angles[1]/wow)) < (double)0.0001;
		boolean a3 = Math.abs(angles[2]-wow*Math.round(angles[2]/wow)) < (double)0.0001;
		return a1&&a2&&a3;
	}
	public static void main(String[] args) throws IOException {
	    new BinarySearch().run();
	}
	
	//this code is to run
	public void good() throws IOException {
		for (int i = 0; i < 3; i++) {
			tokenizer = new StringTokenizer(in.readLine());
			array[i][0] = Double.parseDouble(tokenizer.nextToken());
			array[i][1] = Double.parseDouble(tokenizer.nextToken());
		}
		
		for (int i = 0; i < 3; i++) {
			vector[0][0] = array[i%3][0]-array[(i+1)%3][0];
			vector[0][1] = array[i%3][1]-array[(i+1)%3][1];
			vector[1][0] = array[i%3][0]-array[(i+2)%3][0];
			vector[1][1] = array[i%3][1]-array[(i+2)%3][1];
			double answer = vector[1][0]*vector[0][0]+vector[1][1]*vector[0][1];
			answer/= vectorLen(0)*vectorLen(1);
			angles[i] = Math.acos(answer);
			
		}
		/*for (int i = 0; i < 3; i++) {
			System.out.println(angles[i]);
		}*/
		double worseAngle = Math.min(angles[0], Math.min(angles[1], angles[2]));
		int search = 0;
		for (int i = 1; i<=100; i++) {
			double wow = Math.PI/i;
			if (comp(wow)) {
					int kanswer = (int)Math.round(angles[0]/wow)+(int)Math.round(angles[1]/wow)+(int)Math.round(angles[2]/wow);
					//System.out.println("I entered this : " + kanswer + ", i = " + i + ", "+ wow);
					if (kanswer == i) {
						search = kanswer;
						i = 101;
						break;
					} 
			}
		}
		double radius = vectorLen(0)/2;
		radius/=Math.sin(angles[1]);
		double square = search;
		double edge = 2*radius*Math.sin(Math.PI/search);
		square*=edge*edge;
		square/=4;
		square/=Math.tan(Math.PI/search);
		System.out.println(square);
	
	}

	
	public void run() {
	    try {
	        Reader reader = new InputStreamReader(System.in);
	        Writer writer = new OutputStreamWriter(System.out);
	        in = new BufferedReader(reader);
	        out = new PrintWriter(writer);
	        good();
	        out.close();
	    } catch (Exception e) {
	        e.printStackTrace();
	        System.exit(1);
	    }
	}
}