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

Ax, Ay = map(float, input().split())
Bx, By = map(float, input().split())
Cx, Cy = map(float, input().split())

# D = 2 * (Ax * (By - Cy) + Bx * (Cy - Ay) + Cx * (Ay - By))

# DA = Ax * Ax + Ay * Ay
# DB = Bx * Bx + By * By
# DC = Cx * Cx + Cy * Cy

# Ux = (DA * (By - Cy) + DB * (Cy - Ay) + DC * (Ay - By)) / D
# Uy = (DA * (Cx - Bx) + DB * (Ax - Cx) + DC * (Bx - Ax)) / D

ax_bx = Ax - Bx
ay_by = Ay - By

bx_cx = Bx - Cx
by_cy = By - Cy

cx_ax = Cx - Ax
cy_ay = Cy - Ay

a2 = bx_cx * bx_cx + by_cy * by_cy
b2 = cx_ax * cx_ax + cy_ay * cy_ay
c2 = ax_bx * ax_bx + ay_by * ay_by

S = abs(ax_bx * by_cy - ay_by * bx_cx) / 2
coef = -1 / (8 * S * S)

alpha_a = coef * a2 * (ax_bx * cx_ax + ay_by * cy_ay)
alpha_b = coef * b2 * (ax_bx * bx_cx + ay_by * by_cy)
alpha_c = coef * c2 * (cx_ax * bx_cx + cy_ay * by_cy)

Ux = alpha_a * Ax + alpha_b * Bx + alpha_c * Cx
Uy = alpha_a * Ay + alpha_b * By + alpha_c * Cy

R2 = a2 * b2 * c2 / (16 * S * S)

phiA = math.atan2(Ay - Uy, Ax - Ux)
phiB = math.atan2(By - Uy, Bx - Ux)
phiC = math.atan2(Cy - Uy, Cx - Ux)

phiAB = phiA - phiB
phiBC = phiB - phiC
phiCA = phiC - phiA

eps = 1e-5

n = 3
while n <= 100:
    phi = 2. * math.pi / n

    nAB = phiAB / phi
    nBC = phiBC / phi
    nCA = phiCA / phi

    nAB -= round(nAB)
    nBC -= round(nBC)
    nCA -= round(nCA)

    if (abs(nAB) < eps) and (abs(nBC) < eps) and (abs(nCA) < eps):
        S = 0.5 * n * R2 * math.sin(2. * math.pi / n)
        print('%.8f' % S)
        break

    n += 1