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:


# /*******************************************************************************
# * Author       : Quantum Of Excellence
# * email        : quantumofexcellence (at) gmail (dot) com
# * copyright    : 2014 - 2015
# * date         : 14 - 11 - 2015
# * Judge Status : 
# * Problem Category : 
# * file name    : 1C.py
# * version      : 1.0
# *
# * TERMS OF USE - Write a mail to the author before copying or reusing the content of this file 
# * seeking our permission for the same.
# * Copying/reuse of the below code without the permission of the author is prohibited and illegal.
# *
# * All rights reserved by Quantum Of Excellence.
# ******************************************************************************/

# /*******************************************************************************
# * some pointers on the logic/idea - 
# * Logic clear - took code clues from m1_k3 - #3150499
# * 
# *******************************************************************************/


# test cases-
    
from math import *
def eucDist(x1,y1,x2,y2):
 d=pow((x1-x2),2)+pow((y1-y2),2)
 return sqrt(d)

def findAngle(a,b,c):
 return acos((b*b+c*c-a*a)/(2*b*c))

def fgcd(a, b):
  return a if b < pi / 100 else fgcd(b, fmod(a, b))

#import sys
#fi = open("g:\dump\input.in","r")
#sys.stdin = fi
u=input
r=range
X,Y,A,G=[[0 for i in r(3)]for j in r(4)]
for i in r(3):
 X[i],Y[i]=map(float,u().split())

#find sides
for i in r(3):
 A[i]=eucDist(X[i%3],Y[i%3],X[(i+1)%3],Y[(i+1)%3])

#find angles in radians. These angles are half of those subtended at the centre. Thus, they are multiples of PI/n instead of multiples of 2*PI/n.
for i in r(3):
 G[i]=findAngle(A[i%3],A[(i+1)%3],A[(i+2)%3])
n=pi/fgcd( fgcd(G[0],G[1]), G[2] )
R=A[0]/(2*sin(G[0]))
print(.5*R*R*n*sin(2*pi/n) )