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

from math import atan


def normal(p1, p2):
    x1, y1 = p1
    x2, y2 = p2

    angle = atan((y2 - y1) / (x2 - x1)) + math.pi if x2 - x1 else math.pi / 2

    return math.cos(angle), math.sin(angle), -((x1 + x2) * math.cos(angle) + (y1 + y2) * math.sin(angle)) / 2


def center(p1, p2, p3):
    a1, b1, c1 = normal(p1, p2)
    a2, b2, c2 = normal(p2, p3)
    return (b1 * c2 - b2 * c1) / (a1 * b2 - a2 * b1), (c1 * a2 - c2 * a1) / (a1 * b2 - a2 * b1)


def dist(p1, p2):
    x1, y1 = p1
    x2, y2 = p2
    return math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)


def cp(center, radius, angle):
    cx, cy = center
    return cx + math.cos(angle) * radius, cy + math.sin(angle) * radius


def angle_for_cp(center, p):
    cx, cy = center
    px, py = p
    if px == cx:
        return math.pi / 2 if py > cy else -math.pi / 2
    elif px > cx:
        res = math.atan((py - cy) / (px - cx))
        if py < cy:
            res += math.pi * 2
    else:
        res = math.atan((py - cy) / (px - cx)) + math.pi
    return res


def parse_point():
    px, py = input().split(' ')
    return float(px), float(py)


points = None

if points is None:
    points = [
        parse_point()
        for i in range(3)
    ]


c = center(*points)

rad = dist(points[0], c)

alpha1 = angle_for_cp(c, points[0])


def dist_for_count(count):
    index1, dist1 = min(
        (
            (index, dist(points[1], cp(c, rad, math.pi * 2 / count * index + alpha1)))
            for index in range(1, count)
        ),
        key=lambda item: item[1]
    )
    index2, dist2 = min(
        (
            (index, dist(points[2], cp(c, rad, math.pi * 2 / count * index + alpha1)))
            for index in range(1, count) if index != index1
        ),
        key=lambda item: item[1]
    )
    return dist1 + dist2


best = next(
    (
        (count,) #dist_for_count(count))
        for count in range(3, 101)
        if dist_for_count(count) < 0.001
    ),
    #key=lambda item: item[1]
)


#print(c, rad, alpha1, best)


def square(points_count, radius):
    angle = math.pi * 2 / points_count
    tr_square = radius**2 * math.sin(angle / 2) * math.cos(angle / 2)
    return tr_square * points_count


print(square(best[0], rad))