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:
#!/usr/bin/python

import sys
import math

def minus(a,b):
    return (a[0]-b[0], a[1]-b[1])

def norm_dot(a,b):
    len_a = math.sqrt(sum([_a**2 for _a in a]))
    len_b = math.sqrt(sum([_b**2 for _b in b]))
    dot = sum([(_a / len_a) * (_b/len_b) for _a,_b in zip(a,b)])
    return dot

def norm(a):
    len_a = math.sqrt(sum([_a**2 for _a in a]))
    return len_a

def intersect(x1,y1,x2,y2,x3,y3,x4,y4):
    # : <math>
    # \begin{align}
    # (P_x, P_y)= \bigg(&\frac{(x_1 y_2-y_1 x_2)(x_3-x_4)-(x_1-x_2)(x_3 y_4-y_3 x_4)}{(x_1-x_2)(y_3-y_4)-(y_1-y_2)(x_3-x_4)}, \\
    #          &\frac{(x_1 y_2-y_1 x_2)(y_3-y_4)-(y_1-y_2)(x_3 y_4-y_3 x_4)}{(x_1-x_2)(y_3-y_4)-(y_1-y_2)(x_3-x_4)}\bigg)
    # \end{align}
    # </math>
    x1y2 = x1*y2
    y1x2 = y1*x2
    x3y4 = x3*y4
    y3x4 = y3*x4

    P_x, P_y = (((x1y2 - y1x2) * (x3 - x4) - (x1 - x2) * (x3y4 - y3x4)) /
                   ((x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4)),
                ((x1y2 - y1x2) * (y3 - y4) - (y1 - y2) * (x3y4 - y3x4)) /
                   ((x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4))
               )
    return (P_x, P_y)

p1= [float(v) for v in sys.stdin.readline().split(" ")]
p2= [float(v) for v in sys.stdin.readline().split(" ")]
p3= [float(v) for v in sys.stdin.readline().split(" ")] 

x1 = (p1[0] + p2[0])/2.0
y1 = (p1[1] + p2[1])/2.0

d1x = -(p1[0]-p2[0])
d1y = p1[1]-p2[1]


x2 = x1+d1y
y2 = y1+d1x

x3 = (p2[0] + p3[0])/2.0
y3 = (p2[1] + p3[1])/2.0

d2x =-( p2[0]-p3[0])
d2y = p2[1]-p3[1]

x4 = x3 + d2y
y4 = y3 + d2x

centre =  intersect(x1,y1, x2,y2, x3,y3, x4,y4)

p1 = minus(p1, centre)
p2 = minus(p2, centre)
p3 = minus(p3, centre)

angle1 = math.fabs(math.acos(norm_dot(p1,p2)))
angle2 = math.fabs(math.acos(norm_dot(p1,p3)))

test_side_count = 3
while True:
    angle = (math.pi*2.0) / float(test_side_count)
    thetas = [angle * i for i in range(test_side_count)]

    a1_d = [math.fabs(math.fabs(angle1) - math.fabs(t)) for t in thetas]
    a2_d = [math.fabs(math.fabs(angle2) - math.fabs(t)) for t in thetas]

    if min(a1_d) < 0.000001 and min(a2_d) < 0.000001:
        break

    test_side_count += 1
R = norm(p1)

sect_size = (math.pi*R*R /(2.0*math.pi) * angle) - ((R*R)/2.0) * (angle - math.sin(angle))

print "%.7f" % (sect_size * test_side_count)