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:
from math import acos, pi, cos, sin, atan2, fabs, sqrt

__author__ = 'liraim'


def read_input():
    points = []
    for i in range(0, 3):
        strings = input().split()
        points.append({'x': float(strings[1]), 'y': float(strings[0])})
    return points


def solve(input_data):
    # Find center of circus

    kx = {'12': - 2 * input_data[0]['x'] + 2 * input_data[1]['x'],
          '13': - 2 * input_data[0]['x'] + 2 * input_data[2]['x'],
          '23': - 2 * input_data[1]['x'] + 2 * input_data[2]['x']}

    ky = {'12': - 2 * input_data[0]['y'] + 2 * input_data[1]['y'],
          '13': - 2 * input_data[0]['y'] + 2 * input_data[2]['y'],
          '23': - 2 * input_data[1]['y'] + 2 * input_data[2]['y']}

    r = {'12': input_data[1]['x'] ** 2 + input_data[1]['y'] ** 2 - input_data[0]['x'] ** 2 - input_data[0]['y'] ** 2,
         '13': input_data[2]['x'] ** 2 + input_data[2]['y'] ** 2 - input_data[0]['x'] ** 2 - input_data[0]['y'] ** 2,
         '23': input_data[2]['x'] ** 2 + input_data[2]['y'] ** 2 - input_data[1]['x'] ** 2 - input_data[1]['y'] ** 2}

    center = dict()
    if kx['12'] == 0:
        center['y'] = r['12'] / ky['12']
        if kx['13'] != 0:
            center['x'] = (r['13'] - ky['13'] * center['y']) / kx['13']
        else:
            center['x'] = (r['23'] - ky['23'] * center['y']) / kx['23']
    if kx['13'] == 0:
        center['y'] = r['13'] / ky['13']
        if kx['12'] != 0:
            center['x'] = (r['12'] - ky['12'] * center['y']) / kx['12']
        else:
            center['x'] = (r['23'] - ky['23'] * center['y']) / kx['23']
    if kx['23'] == 0:
        center['y'] = r['23'] / ky['23']
        if kx['13'] != 0:
            center['x'] = (r['13'] - ky['13'] * center['y']) / kx['13']
        else:
            center['x'] = (r['12'] - ky['12'] * center['y']) / kx['12']

    if ky['12'] == 0:
        center['x'] = r['12'] / kx['12']
        if ky['13'] != 0:
            center['y'] = (r['13'] - kx['13'] * center['x']) / ky['13']
        else:
            center['y'] = (r['23'] - kx['23'] * center['x']) / ky['23']
    if ky['13'] == 0:
        center['x'] = r['13'] / kx['13']
        if ky['12'] != 0:
            center['y'] = (r['12'] - kx['12'] * center['x']) / ky['12']
        else:
            center['y'] = (r['23'] - kx['23'] * center['x']) / ky['23']
    if ky['23'] == 0:
        center['x'] = r['23'] / kx['23']
        if ky['13'] != 0:
            center['y'] = (r['13'] - kx['13'] * center['x']) / ky['13']
        else:
            center['y'] = (r['12'] - kx['12'] * center['x']) / ky['12']

    if center.get('x') is None:
        if (kx['12'] * ky['13'] - kx['13'] * ky['12']) != 0:
            center['x'] = (r['12'] * ky['13'] - r['13'] * ky['12']) / (kx['12'] * ky['13'] - kx['13'] * ky['12'])
            center['y'] = (r['13'] - kx['13'] * center['x']) / ky['13']
        elif (kx['12'] * ky['23'] - kx['23'] * ky['12']) != 0:
            center['x'] = (r['12'] * ky['23'] - r['23'] * ky['12']) / (kx['12'] * ky['23'] - kx['23'] * ky['12'])
            center['y'] = (r['23'] - kx['23'] * center['x']) / ky['23']
        elif (kx['13'] * ky['23'] - kx['23'] * ky['13']) != 0:
            center['x'] = (r['13'] * ky['23'] - r['23'] * ky['13']) / (kx['13'] * ky['23'] - kx['23'] * ky['13'])
            center['y'] = (r['23'] - kx['23'] * center['x']) / ky['23']

    radius = sqrt((input_data[0]['x'] - center['x']) ** 2 + (input_data[0]['y'] - center['y']) ** 2)

    precision = 10e-6
    sector_count = 0
    for count in range(3, 101):
        check_func = lambda n, point1, point2: sin(n * (atan2(point1['y'] - center['y'], point1['x'] - center['x']) -
                                                        atan2(point2['y'] - center['y'], point2['x'] - center['x'])) / 2)
        if fabs(check_func(count, input_data[0], input_data[1])) < precision and \
           fabs(check_func(count, input_data[0], input_data[2])) < precision and \
           fabs(check_func(count, input_data[1], input_data[2])) < precision:
            sector_count = count
            break
    area = sector_count / 2 * radius ** 2 * sin(2 * pi / sector_count)
    return area


def print_answer(answer):
    print("%.6f" % answer)


print_answer(solve(read_input()))