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 math import *

def LineIntersect(a,b):
    det=lambda a,b,c,d:a*d-b*c
    z=det(a[0],a[1],b[0],b[1])
    return (-det(a[2],a[1],b[2],b[1])/z,-det(a[0],a[2],b[0],b[2])/z)

def GetCircleInOrigin(A):
    GetNormal=lambda (x,y):(-y,x)
    GetDif=lambda (x1,y1),(x2,y2):(x1-x2,y1-y2)
    GetSum=lambda (x1,y1),(x2,y2):(x1+x2,y1+y2)
    GetMultToCof=lambda (x1,y1),c:(x1*c,y1*c)
    NormalLine=lambda (a,b):(b[1]-a[1],a[0]-b[0],a[1]*b[0]-a[0]*b[1])
    L=[ (GetSum(GetMultToCof(GetDif(A[i+1],A[i]),0.5),A[i]),GetSum(GetSum(GetMultToCof(GetDif(A[i+1],A[i]),0.5),A[i]),GetNormal(GetDif(A[i+1],A[i])))) for i in range(2)]
    L=map(NormalLine,L)
    L=LineIntersect(L[0],L[1])  
    return map(lambda x:GetDif(x,L),A)

def norm(a):
    if (a<0):
        return norm(a+2*pi)
    elif (a>=2*pi):
        return norm(a-2*pi)
    else:
        return a

eps=0.00001
A=[map(float,raw_input().split()) for i in range(3)]
A=GetCircleInOrigin(A)
C=[atan2(y,x) for x,y in A]
for i in range(3):
    if (C[i]<0):
        C[i]+=2*pi
C=sorted(C)
omega=1
R=hypot(*A[0])
for p in range(3,101):
    alpha=2*pi/p
    for a1 in xrange (1,p):
        for a2 in range (1,p-a1):
            a3=p-a1-a2
            if (omega==1) and (abs(C[1]-C[0]-a1*alpha)<=eps) and (abs(C[2]-C[1]-a2*alpha)<=eps):
                omega=alpha 
print R**2*pi/omega*sin(omega)