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.text.DecimalFormat;

public class round1C { // Computational Geometry
    
    public static void main(String[] args)throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        double x1 = 0, x2 = 0, x3 = 0;
        double y1 = 0, y2 = 0, y3 = 0;
        String [] use = br.readLine().split(" ");
        x1 = Double.parseDouble(use[0]);
        y1 = Double.parseDouble(use[1]);
        use = br.readLine().split(" ");
        x2 = Double.parseDouble(use[0]);
        y2 = Double.parseDouble(use[1]);
        use = br.readLine().split(" ");
        x3 = Double.parseDouble(use[0]);
        y3 = Double.parseDouble(use[1]);
        double a = 0, b = 0, c = 0;
        a = Math.sqrt(Math.pow(y2 - y1, 2) + Math.pow(x2 - x1, 2));
        b = Math.sqrt(Math.pow(y3 - y2, 2) + Math.pow(x3 - x2, 2));
        c = Math.sqrt(Math.pow(y3 - y1, 2) + Math.pow(x3 - x1, 2));
        double angAB = 0, angBC = 0, angAC = 0;
        angAB = getAngle(a, b, c);
        angBC = getAngle(b, c, a);
        angAC = getAngle(a, c, b);
        double centreAngA = 0, centreAngB = 0, centreAngC = 0;
        centreAngA = 2.0 * angBC;
        centreAngB = 2.0 * angAC;
        centreAngC = 2.0 * angAB;
        int N = -1;
        for(int i = 3 ; i <= 110 ; ++i){
            double curAng = 2 * Math.PI / i;
            double divA = centreAngA / curAng;
            double divB = centreAngB / curAng;
            double divC = centreAngC / curAng;
            long intDivA = Math.round(centreAngA / curAng);
            long intDivB = Math.round(centreAngB / curAng);
            long intDivC = Math.round(centreAngC / curAng);
            if(Math.abs(divA - intDivA) < 1e-5 && Math.abs(divB - intDivB) < 1e-5
                    && Math.abs(divC - intDivC) < 1e-5){
                N = i;
                break;
            }
        }
        // N is the size of the result polygon
        double radius = a * b * c / (4.0 * (0.5 * a * b * Math.sin(angAB)));
        double area = (N * radius * radius * Math.sin(2 * Math.PI / N)) / 2;
        DecimalFormat df = new DecimalFormat("0.00000000");
        System.out.println(df.format(area));
    }
    
    //Law of Cosines to get the angle between a and b
    public static double getAngle(double a, double b, double c){
        return Math.acos((Math.pow(a, 2) + Math.pow(b, 2) 
                - Math.pow(c, 2)) / (2.0 * a * b));
    }
    
}