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:
# @auther: guoyc
# @date: 2018/7/16

import math
from math import pi

p1 = [float(_) for _ in input().split()]
p2 = [float(_) for _ in input().split()]
p3 = [float(_) for _ in input().split()]


def get_line(p1, p2):
    x1, y1 = p1
    x2, y2 = p2
    if x1 * y2 == x2 * y1:
        c = 0
        a = 1
        if y1 != 0:
            b = -x1 / y1
        else:
            b = -x2 / y2
        return a, b, c
    else:
        c = 1
        a = (y1 - y2) / (x1 * y2 - x2 * y1)
        b = (x1 - x2) / (x2 * y1 - x1 * y2)
        return a, b, c


def get_line2(p, a, b, c):
    return b, -a, a * p[1] - b * p[0]


a1, b1, c1 = get_line(p1, p2)
a2, b2, c2 = get_line(p1, p3)

mid1 = ((p1[0] + p2[0]) / 2, (p1[1] + p2[1]) / 2)
mid2 = ((p1[0] + p3[0]) / 2, (p1[1] + p3[1]) / 2)

a3, b3, c3 = get_line2(mid1, a1, b1, c1)
a4, b4, c4 = get_line2(mid2, a2, b2, c2)

xx = (b3 * c4 - c3 * b4) / (a3 * b4 - a4 * b3)
yy = (a3 * c4 - c3 * a4) / (b3 * a4 - a3 * b4)


def get_angle(p1, p2, p3):
    v1 = (p2[0] - p1[0], p2[1] - p1[1])
    v2 = (p3[0] - p1[0], p3[1] - p1[1])

    dot_prod = v1[0] * v2[0] + v1[1] * v2[1]

    l1 = math.sqrt(v1[0] ** 2 + v1[1] ** 2)
    l2 = math.sqrt(v2[0] ** 2 + v2[1] ** 2)

    angle = math.acos(dot_prod / (l1 * l2))

    return angle, l1, l2


center = (xx, yy)

ang1, l11, l12 = get_angle(center, p1, p2)
ang2, l21, l22 = get_angle(center, p2, p3)
ang3, l31, l32 = get_angle(center, p1, p3)

n = 1

while True:
    piece = 2 * pi / n
    if abs(round(ang1 / piece) - ang1 / piece) < 0.01 and abs(round(ang2 / piece) - ang2 / piece) < 0.01 and abs(
                    round(ang3 / piece) - ang3 / piece) < 0.01:
        break
    n += 1

theta = 2 * pi / n

area = n * 1 / 2 * l11 * l11 * math.sin(theta)
print(area)