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 PYTHON):

Solution:
from fractions import Fraction, gcd
from math import acos, floor, pi, sin, sqrt
from sys import stdin

class Point:
    def __init__(self, x, y):
        self.x = x
        self.y = y
    
    def __complex__(self):
        return complex(self.x, self.y)
    
    def __sub__(self, pt2):
        return Point(self.x - pt2.x, self.y - pt2.y)
    
    def __or__(self, pt2):
        return Line(2*(self.x - pt2.x), 2*(self.y - pt2.y), (pt2 * pt2) - (self * self))
    
    def __div__(self, k):
        return Point(self.x / k, self.y / k)
    
    def __mul__(self, pt2):
        return self.x * pt2.x + self.y * pt2.y
    
    def __str__(self):
        return "("+str(self.x)+", "+str(self.y)+")"
    
    def __abs__(self):
        return sqrt(self * self)

class Line:
    def __init__(self, a, b, c):
        self.a = a
        self.b = b
        self.c = c
    
    def __and__(self, ln2):
        det = self.a * ln2.b - self.b * ln2.a
        return Point(self.b * ln2.c - self.c * ln2.b, self.c * ln2.a - self.a * ln2.c) / (self.a * ln2.b - self.b * ln2.a)

def circumcenter(pt1, pt2, pt3):
    return (pt1 | pt2) & (pt1 | pt3)

def angleAt(O, X, Y):
    cmplx = complex(Y - O) / complex(X - O)
    cmplx /= abs(cmplx)
    theta = acos(cmplx.real)
    if (cmplx.imag < 0):
        theta = -theta
    return theta

[A, B, C] = [Point(float(z[0]), float(z[1])) for k in xrange(3) for z in [stdin.readline().split()]]
O = circumcenter(A, B, C)
theta1 = angleAt(O, A, B)
theta2 = angleAt(O, A, C)
q1 = theta1 / (2 * pi)
q2 = theta2 / (2 * pi)

def err(z):
    return abs(z - floor(z + 0.5))

def closestfrac(q):
    rec = err(q)
    holder = Fraction(int(floor(q+0.5)),1)
    for k in xrange(2,101):
        scr = err(k * q) / k
        if scr < rec:
            rec = scr
            holder = Fraction(int(floor(k * q + 0.5)),k)
    return holder

[n1, n2] = [closestfrac(z).denominator for z in [q1, q2]]
N = (n1 * n2) / gcd(n1, n2)
R = abs(A - O)
print R * R * N * sin(2 * pi / N) / 2