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:
import math
def SC(a,b):
    return a[0]*b[0]+a[1]*b[1]
def LN(a):
    d=math.sqrt(a[0]*a[0]+a[1]*a[1])
    return d
def AR(a,b):
    d=math.acos((SC(a,b)/LN(a)/LN(b)))
    return d
def gcd(x,y):
    while y!=0: x,y=y,x%y
    return x
def lcm(x,y):
    return x*y/gcd(x,y)
_IsSquare=False
x1,y1=input().split()
x1,y1=float(x1),float(y1)
x2,y2=input().split()
x2,y2=float(x2),float(y2)
x3,y3=input().split()
x3,y3=float(x3),float(y3)
a=[x3-x1,y3-y1]
b=[x2-x1,y2-y1]
A=AR(a,b)
if SC(a,b)==0:
    _IsSquare=True
    print(LN(a)*LN(b))
a=[x3-x2,y3-y2]
b=[x1-x2,y1-y2]
B=AR(a,b)
if SC(a,b)==0:
    _IsSquare=True
    print(LN(a)*LN(b))
a=[x1-x3,y1-y3]
b=[x2-x3,y2-y3]
C=AR(a,b)
if SC(a,b)==0:
    _IsSquare=True
    print(LN(a)*LN(b))
if not _IsSquare:
    n1=math.pi/A
    n2=math.pi/B
    n3=math.pi/C
    
    i=2
    n=0
    while not n and i<=100:
        _1=float(i)/n1
        _2=float(i)/n2
        _3=float(i)/n3
        if float(round(_1,0)-0.02)<=_1<=float(round(_1,0)+0.02) and float(round(_2,0)-0.02)<=_2<=float(round(_2,0)+0.02) and float(round(_3,0)-0.02)<=_3<=float(round(_3,0)+0.02):
            n=i
        i+=1
    a=LN([x2-x1,y2-y1])
    b=LN([x3-x2,y3-y2])
    c=LN([x1-x3,y1-y3])
    p=(a+b+c)/2
    S=math.sqrt(p*(p-a)*(p-b)*(p-c))
    R=(a*b*c)/(4*S)
    if int(a)==int(b)==int(c):
        print(S)
    else: print((float(float(n)/2))*(R**2)*math.sin(2*math.pi/n))