514. Polygon

Time limit per test: 1.25 second(s)
Memory limit: 262144 kilobytes
input: standard
output: standard

You are given lengths of sides of some polygon. You must find the infimum of the possible areas of simple polygons with such side lengths. Infimum of a set of real numbers A is the exact upper bound of the set L of all real numbers y such that for any xA holds yx.

A simple polygon is a polygon without self-intersections and self-touchings.

The first line contains integer n, 3 ≤ n ≤ 10 — the number of sides of the polygon. The second line contains n integers a1, a2,..., an, such that for any 1 ≤ in (this means that there exists a simple polygon with sides a1, a2,..., an. Also, 1 ≤ ai ≤ 100.

Output one real number — the answer to the problem. Your answer will be considered correct if absolute or relative error is less than 10-6.

sample input
sample output
3 4 5

sample input
sample output
8 4 3 5

sample input
sample output
5 5 5 5 5 5 5 5 5 5