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.*;

public class AncientBerlandCircus {
    public static void main(String args[]) {

        Scanner scan = new Scanner(System.in);
        List<Double> coordinates = new ArrayList<Double>();
        
        for ( int i = 0; i < 6; i++) {
            double temp = scan.nextDouble(); 
            coordinates.add(temp);
        }
        
        scan.close();
         
        double A = distance(coordinates.get(0), coordinates.get(1), coordinates.get(2), coordinates.get(3)); 
        double B = distance(coordinates.get(2), coordinates.get(3), coordinates.get(4), coordinates.get(5)); 
        double C = distance(coordinates.get(0), coordinates.get(1), coordinates.get(4), coordinates.get(5)); 
        
        int sides = (int) calcSides(A, B, C);
        
        double semiperimeter = (A + B + C) / 2;
        
        double area_triangle = Math.sqrt(semiperimeter * (semiperimeter - A) * (semiperimeter - B) * (semiperimeter - C));
        
        double circumradius = (A * B * C) / (4 * area_triangle);

        double min_area = area(sides, circumradius);
        
        System.out.println(min_area);
    }

    public static double calcSides(double A, double B, double C) {
        double a = Math.acos((Math.pow(B, 2) + Math.pow(C, 2) - Math.pow(A, 2))/ (2 * B * C));
        double b = Math.acos((Math.pow(A, 2) + Math.pow(C, 2) - Math.pow(B, 2))/ (2 * A * C));
        double c = Math.acos((Math.pow(A, 2) + Math.pow(B, 2) - Math.pow(C, 2))/ (2 * B * A));
        double n = (3.14159265359 / (findGCD(findGCD(a, b), c)));
        return n;
    }

    public static double area(int sides, double circumradius) {
        double min_area = (sides * Math.sin(( 2 * 3.14159265359) / sides) * Math.pow(circumradius, 2)) / 2;
        return min_area;
    }

    public static double findGCD(double a,  double b) { 
        if (Math.abs(a) < 1e-4) 
            return b; 
        if (Math.abs(b) < 1e-4)
            return a; 
        if (a == b) 
            return a; 
        if (a > b) 
            return findGCD(a-b, b); 
        return findGCD(a, b-a); 
    }

    public static double distance(double x1, double y1, double x2, double y2) {
        double d = 0;
        d = Math.sqrt(Math.pow((x2 - x1), 2) + Math.pow((y2 - y1), 2));
        return d;
    }
}