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 as m
s_c = []
for i in range(0,3):
    s = input().split()
    s = [float(s[0]),float(s[1])]
    s_c.append(s)
n = 2
oka,okb,okc = 0, 0, 0  
x1,y1 = s_c[0][0],s_c[0][1]
x2,y2 = s_c[1][0],s_c[1][1]
x3,y3 = s_c[2][0],s_c[2][1]
a = m.sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))
b = m.sqrt((x3-x2)*(x3-x2)+(y3-y2)*(y3-y2))
c = m.sqrt((x3-x1)*(x3-x1)+(y3-y1)*(y3-y1))
cosc = (pow(a,2)+pow(b,2)-pow(c,2))/(2*a*b)
sinc = m.sqrt(1 - cosc*cosc)
R = c / (sinc * 2)
cosy_c = (2*R*R - c*c)/(2*R*R)
y_c = m.acos(cosy_c)
cosy_a = (2*R*R - a*a)/(2*R*R)
y_a = m.acos(cosy_a)
cosy_b = (2*R*R - b*b)/(2*R*R)
y_b = m.acos(cosy_b) 
fl = 1
while (fl == 1):
    n = n+1
    u = m.pi*2 / n
    fl = 0
    s_out = y_c / u
    s_out = str(s_out)
    xfl = ''
    c = 0
    for t in range(s_out.find('.')+1,len(s_out)):
        c += 1
        if (t >= len(s_out) or c >= 5):
            break
        xfl += s_out[t]
    s_out = float(s_out)
    if (xfl in '999999'):
        s_out = m.trunc(s_out)+1
    elif (xfl in '000000'):
        s_out = m.trunc(s_out)
    else:
        s_out = 0
    if (s_out == 0):
        fl = 1
    s_out = y_a / u
    s_out = str(s_out)
    xfl = ''
    c = 0
    for t in range(s_out.find('.')+1,len(s_out)):
        c += 1
        if (t >= len(s_out) or c >= 5):
            break
        xfl += s_out[t]
    s_out = float(s_out)
    if (xfl in '999999'):
        s_out = m.trunc(s_out)+1
    elif (xfl in '000000'):
        s_out = m.trunc(s_out)
    else:
        s_out = 0
    if (s_out == 0):
        fl = 1
    s_out = y_b / u
    s_out = str(s_out)

    xfl = ''
    c = 0
    for t in range(s_out.find('.')+1,len(s_out)):
        c += 1
        if (t >= len(s_out) or c >= 5):
            break
        xfl += s_out[t]
    s_out = float(s_out)
    if (xfl in '999999'):
        s_out = m.trunc(s_out)+1
    elif (xfl in '000000'):
        s_out = m.trunc(s_out)
    else:
        s_out = 0
    if (s_out == 0):
        fl = 1
    
s = str((1/2)*R*R*n*m.sin((2*m.pi)/n))
print(s)