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 math import atan2, sin, sqrt, pi


def create_line(segment):
    line = {}
    
    line['A'] = segment['q']['y'] - segment['p']['y']
    line['B'] = segment['p']['x'] - segment['q']['x']
    line['C'] = line['A'] * segment['p']['x'] - line['B'] * segment['p']['y']

    return line

def midpoint(segment):
    point = {}

    point['x'] = .5 * (segment['p']['x'] + segment['q']['x'])
    point['y'] = .5 * (segment['p']['y'] + segment['q']['y'])

    return point

def perpendicular(line, point):
    new_line = {}

    new_line['A'] = -line['B']
    new_line['B'] = line['A']
    new_line['C'] = new_line['A'] * point['x'] + new_line['B'] * point['y']

    return new_line

def intersection(line1, line2):
    point = {}

    det = line1['A'] * line2['B'] - line2['A'] * line1['B']
    point['x'] = (line2['B'] * line1['C'] - line1['B'] * line2['C']) / det
    point['y'] = (line1['A'] * line2['C'] - line2['A'] * line1['C']) / det

    return point

def subtract(p, q):
    point = {}

    point['x'] = p['x'] - q['x']
    point['y'] = p['y'] - q['y']

    return point

def distance(p, q):
    d = subtract(p, q)
    return sqrt(d['x']**2 + d['y']**2)


p = dict((r, c)    for r, c in zip("xy", map(float, raw_input().split())))
q = dict((r, c)    for r, c in zip("xy", map(float, raw_input().split())))
s = dict((r, c)    for r, c in zip("xy", map(float, raw_input().split())))

pq = {'p': p, 'q': q}
ps = {'p': p, 'q': s}

l1 = create_line(pq)
l2 = create_line(ps)

m1 = midpoint(pq)
m2 = midpoint(ps)

pl1 = perpendicular(l1, m1)
pl2 = perpendicular(l2, m2)

c = intersection(pl1, pl2)
r = distance(p, c)

p = subtract(p, c)
q = subtract(q, c)
s = subtract(s, c)

t1, t2, t3 = sorted((atan2(p['y'], p['x']), atan2(q['y'], q['x']), atan2(s['y'], s['x'])))

t12 = t2 - t1
t23 = t3 - t2
t31 = 2 * pi + t1 - t3

min_error = angle = n = float("inf")
for sides in range(3, 200):
    t = 2 * pi / sides

    error = abs(t12 / t - round(t12 / t)) \
            + abs(t23 / t - round(t23 / t)) \
            + abs(t31 / t - round(t31 / t))

    if error < min_error:
        min_error = error
        angle = t
        n = sides

print .5 * n * r**2 * sin(angle)