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 sys import stdin
import math

v1, v2, v3 = [(float(a), float(b)) for a,b in map(str.split, stdin.readlines())]
(x1, y1), (x2, y2), (x3, y3) = v1, v2, v3


def get_circle_center(v1, v2, v3):
    (x1, y1), (x2, y2), (x3, y3) = v1, v2, v3
    if x1 == x2:
        return (x1 + x3 - (y3 - y1)*(y3 - y2)/(x1 - x3))/2, (y1 + y2)/2
    elif x1 == x3:
        return (x1 + x2 - (y2 - y1)*(y2 - y3)/(x1 - x2))/2, (y1 + y3)/2
    m2 = (y2 - y1)/(x1 - x2)
    m3 = (y3 - y1)/(x1 - x3)
    y0 = (0.5/(m3 - m2)) * (-m2*(y1 + y2) + m3*(y1 + y3) + x2 - x3)
    x0 = 0.5 * (x1 + x2 - m2 * (y1 + y2 - 2*y0))
    return x0, y0


def len(x, y):
    return math.sqrt(x*x + y*y)

def angle(x1, y1, x2, y2):
    l1 = len(x1, y1)
    l2 = len(x2, y2)
    p = x1*x2 + y1*y2
    v = p/(l1*l2)
    if v < -1:
        v = -1
    if v > 1:
        v = 1
    return math.acos(v)

def find_real_number(a1, a2, a3):
    for n in range(1,101):
        d = 0
        b1 = b2 = b3 = 0
        for m in range(1,n):
            angle = 2*math.pi*m/n
            if abs(angle - a1) <= 0.000001:
                b1 = m
            if abs(angle - a2) <= 0.000001:
                b2 = m
            if abs(angle - a3) <= 0.000001:
                b3 = m
                break
        if b3 >= b2 >= b1 > 0:
            break
    return n


x0, y0 = v0 = get_circle_center(v1, v2, v3)
x1 -= x0
x2 -= x0
x3 -= x0
y1 -= y0
y2 -= y0
y3 -= y0
l1 = len(x1, y1)
l2 = len(x2, y2)
l3 = len(x3, y3)

a1 = angle(x1, y1, x2, y2)
a2 = angle(x1, y1, x3, y3)
a3 = angle(x2, y2, x3, y3)
l = len(x1, y1)
n = find_real_number(*sorted([a1, a2, a3]))
s = (n/2.0)*l*l*math.sin(2*math.pi/n)

print '%f' % s