Grassland Fence
There is a large grassland next to the villa Pemberley in the southern region of Byterland. Mrs. Darcy is afraid of her potted plants being trampled by strangers, so she decides to fence in some triangular areas in the grassland.
Mrs. Darcy has several fences in her basement. She will form each triangular area using exactly three fences, such that each side of the triangle is a single fence. Since the fences are beautifully decorated, she will not glue multiple fences together to form a single side, or split a single fence into multiple smaller fences. Her goal is to fence in as large an area as possible.
Input
Each line is a separate test case. The first number in the line is the amount of Mrs. Darcy's fences. Next numbers are the lengths of these fences which are the integers between and .
Output
For each test case print in a separate line the maximal area that can be fenced in with digits after the decimal point.
Examples
In the first test, it is preferable to construct triangles with side lengths and . The enclosed area will be .
In the second test, the answer is since it is impossible to form any triangle.
In the third test, the triangle should be constructed. The lengths of fences can be repeated.