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.math.RoundingMode;
import java.text.DecimalFormat;
import java.util.*;

/**
* @problem Ancient Berland Circus
* @url http://codeforces.com/contest/1/problem/C
* @description 
* @author coltonoppa
*/
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double[][] crds = new double[3][2];
        for (int i = 0; i < 3; i++) {
            crds[i][0] = sc.nextDouble();
            crds[i][1] = sc.nextDouble();
        }
        
        double[] center = getCenter(crds);
        double[] degrees = new double[3];
        for (int i = 0; i < 3; i++)
            degrees[i] = Math.toDegrees(Math.atan2(crds[i][1] - center[1], crds[i][0] - center[0]));
        
//        System.out.println("center : " + center[0] + "," + center[1]);
        
        DecimalFormat df = new DecimalFormat("#.####");
        df.setRoundingMode(RoundingMode.FLOOR);
        double n = 3.0;
        Outer: while (n <= 100) {
            String fmt1 = df.format(Math.abs(Math.sin(Math.toRadians((n * (degrees[1] - degrees[0]))/2))));
            String fmt2 = df.format(Math.abs(Math.sin(Math.toRadians((n * (degrees[2] - degrees[1]))/2))));
            String fmt3 = df.format(Math.abs(Math.sin(Math.toRadians((n * (degrees[0] - degrees[2]))/2))));
//            System.out.println(n + " : " + fmt1 + "," + fmt2 + "," + fmt3);
            if (fmt1.equals("0") && fmt2.equals("0") && fmt3.equals("0"))
                break;
            n++;
        }
        
        double radius = Math.sqrt(Math.pow(crds[0][0] - center[0], 2.0) + Math.pow(crds[0][1] - center[1], 2.0));
        double side = 2.0 * radius * Math.sin(Math.toRadians(180.0/n));
        double apothem = side / (2.0 * Math.tan(Math.toRadians(180.0/n)));
        double perimeter = n * side;
        double area = (apothem * perimeter) / 2.0;
        
//        System.out.println("d1 : " + Math.sqrt(Math.pow(crds[0][0] - crds[2][0], 2) + Math.pow(crds[0][1] - crds[2][1], 2)));
//        System.out.println("d2 : " + Math.sqrt(Math.pow(crds[1][0] - crds[0][0], 2) + Math.pow(crds[1][1] - crds[0][1], 2)));
//        System.out.println("d3 : " + Math.sqrt(Math.pow(crds[2][0] - crds[1][0], 2) + Math.pow(crds[2][1] - crds[1][1], 2)));
//        System.out.println("r1 : " + Math.sqrt(Math.pow(crds[0][0] - center[0], 2) + Math.pow(crds[0][1] - center[1], 2)));
//        System.out.println("r2 : " + Math.sqrt(Math.pow(crds[1][0] - center[0], 2) + Math.pow(crds[1][1] - center[1], 2)));
//        System.out.println("r3 : " + Math.sqrt(Math.pow(crds[2][0] - center[0], 2) + Math.pow(crds[2][1] - center[1], 2)));
//        
//        System.out.println(n);
//        System.out.println(radius);
//        System.out.println(side);
//        System.out.println(apothem);
//        System.out.println(perimeter);
        
        DecimalFormat dfans = new DecimalFormat("#.######");
        df.setRoundingMode(RoundingMode.FLOOR);
        System.out.println(dfans.format(area));
    }
    
    static double[] getCenter(double[][] crds) {
        double[][] midpoints = new double[2][2];
        midpoints[0][0] = (crds[1][0] + crds[0][0]) / 2;
        midpoints[0][1] = (crds[1][1] + crds[0][1]) / 2;
        midpoints[1][0] = (crds[2][0] + crds[1][0]) / 2;
        midpoints[1][1] = (crds[2][1] + crds[1][1]) / 2;
        
//        System.out.println(midpoints[0][0] + "," + midpoints[0][1]);
//        System.out.println(midpoints[1][0] + "," + midpoints[1][1]);
        
        double[] slopes = new double[2];
        slopes[0] = (crds[1][1] - crds[0][1]) / (crds[1][0] - crds[0][0]);
        slopes[1] = (crds[2][1] - crds[1][1]) / (crds[2][0] - crds[1][0]);
        slopes[0] = (-1/slopes[0]);
        slopes[1] = (-1/slopes[1]);
        double[] b = new double[2];
        for (int i = 0; i < 2; i++) {
            if (Double.isFinite(slopes[i]))
                b[i] = midpoints[i][1] - slopes[i] * midpoints[i][0];
            else
                b[i] = slopes[i];
        }
        
//        System.out.println("y = " + slopes[0] + " * x + " + b[0]);
//        System.out.println("y = " + slopes[1] + " * x + " + b[1]);
        
        double[] center = new double[2];
        if (Double.isFinite(slopes[0]) && Double.isFinite(slopes[1])) {
            center[0] = ((b[0] - b[1]) * -1) / (slopes[0] - slopes[1]);
            center[1] = slopes[0] * center[0] + b[0];
        } else {
            int f = Double.isFinite(slopes[0]) ? 0 : 1;
            int i = f == 0 ? 1 : 0;
            center[0] = midpoints[i][0];
            center[1] = slopes[f] * center[0] + b[f];
        }
        
        return center;
    }
}