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

Solution:
from math import sqrt, asin, pi, sin, cos

eps = 1e-6

def dist2(ax, ay, bx, by):
    return (ax-bx)**2 + (ay-by)**2

def cross_prod(ax, ay, bx, by):
    return ax*by - ay*bx

def inner_prod(ax, ay, bx, by):
    return ax*bx + ay*by

def find(x, y, s, c):
    for i in range(len(s)):
        if abs(x-s[i]) < eps and abs(y-c[i]) < eps:
            return True
    return False

def pool(x):
    if abs(x) < eps:
        return 1.
    if x < 0:
        return x/pi+2
    return x/pi

def main():
    Ax, Ay = map(float, input().split())
    Bx, By = map(float, input().split())
    Cx, Cy = map(float, input().split())

    #print(Ax, Ay, Bx, By, Cx, Cy)

    #for _ in range(n):
    #   print(ans(input()))

    D = 2*(Ax*(By-Cy) + Bx*(Cy-Ay) + Cx*(Ay-By))
    Ox = ( (Ax**2+Ay**2)*(By-Cy) + (Bx**2+By**2)*(Cy-Ay) + (Cx**2+Cy**2)*(Ay-By) ) / D
    Oy = ( (Ax**2+Ay**2)*(Cx-Bx) + (Bx**2+By**2)*(Ax-Cx) + (Cx**2+Cy**2)*(Bx-Ax) ) / D

    R2 = dist2(Ox,Oy,Ax,Ay)
    #print(R)
    #print(Ox, Oy)
    #print(dist(Ox,Oy,Ax,Ay))
    #print(dist(Ox,Oy,Bx,By))
    #print(dist(Ox,Oy,Cx,Cy))
    s1 = cross_prod(Ax-Ox,Ay-Oy,Bx-Ox,By-Oy)/R2
    c1 = inner_prod(Ax-Ox,Ay-Oy,Bx-Ox,By-Oy)/R2
    s2 = cross_prod(Ax-Ox,Ay-Oy,Cx-Ox,Cy-Oy)/R2
    c2 = inner_prod(Ax-Ox,Ay-Oy,Cx-Ox,Cy-Oy)/R2

    #angle1 = pool(angle1)
    #angle2 = pool(angle2)
    
    #print([s1, s2])
    #print([c1, c2])

    for n in range(3, 101):
        x = list(range(n))
        for j in range(len(x)):
            x[j] = x[j] * (2*pi/n)
        s = list(map(sin, x))
        c = list(map(cos, x))
        #print(s)
        #print(c)
        #print(find(s1, c1, s, c))
        #print(find(s2, c2, s, c))
        if find(s1, c1, s, c) and find(s2, c2, s, c):
            area = .5*n*R2*sin(2*pi/n)
            print("%.8f" % area)
            break

if __name__ == "__main__":
    main()