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.FileInputStream;
import java.io.FileNotFoundException;
import java.io.PrintStream;
import java.util.Locale;
import java.util.Scanner;

public class Solver {
    static Scanner in;
    static PrintStream out;

    static void solve() {
        double ax, ay, bx, by, cx, cy;
        ax = in.nextDouble();
        ay = in.nextDouble();
        in.nextLine();
        bx = in.nextDouble();
        by = in.nextDouble();
        in.nextLine();
        cx = in.nextDouble();
        cy = in.nextDouble();
        in.nextLine();

        double[] m = circumcen(ax, ay, bx, by, cx, cy);
        double a1 = angle(ax, ay, bx, by, m[0], m[1]);
        double a2 = angle(ax, ay, cx, cy, m[0], m[1]);
        double a3 = angle(bx, by, cx, cy, m[0], m[1]);

        double pAbMaMb = pgcd(pgcd(pgcd(a1, a2), a3), 2*Math.PI);
        
        double mx = m[0] - ax;
        double my = m[1] - ay;
        double ml = Math.sqrt(mx * mx + my * my);
        
        double s = 0.5 * ml * ml * Math.sin(pAbMaMb);
        double cT = Math.PI * 2 / pAbMaMb;
        out.println(cT * s);
    }

    static double[] circumcen(double ax, double ay, double bx, double by, double cx, double cy) {
        double d = 2 * (ax * (by - cy) + bx * (cy - ay) + cx * (ay - by));
        double axay = ax * ax + ay * ay;
        double bxby = bx * bx + by * by;
        double cxcy = cx * cx + cy * cy;
        double ux = (axay * (by - cy) + bxby * (cy - ay) + cxcy * (ay - by)) / d;
        double uy = (axay * (cx - bx) + bxby * (ax - cx) + cxcy * (bx - ax)) / d;
        return new double[] { ux, uy };
    }

    static double angle(double ax, double ay, double bx, double by, double cx, double cy) {
        double mx = cx - ax;
        double my = cy - ay;
        double abx = bx - ax;
        double aby = by - ay;

        double ab = Math.sqrt(abx * abx + aby * aby);
        double m = Math.sqrt(mx * mx + my * my);

        return Math.acos((2 * m * m - ab * ab) / (2 * m * m));
    }

    static double pgcd(double a, double b) {
        if (a < b) // on veut le premier argument plus grand
            return (pgcd(b, a));
        else if (b < 0.0001)
            return (a);
        else{
            return (pgcd(b, a % b));
        }
    }
    
    public static void main(String[] args) throws FileNotFoundException {
        Locale.setDefault(new Locale("en", "US"));
//      in = new Scanner(new FileInputStream("inputs/test.in"));
        // out = new PrintStream("outputs/test.out");

         in = new Scanner(System.in);
        out = System.out;

        solve();
    }

}