Making Shapes

From Codeforces. Polygon construction from segments. Solve the geometry problem "Making Shapes".

Examples
Input: [1,2,3]
Output: 0
Hints

Making Shapes

**From Codeforces.** Polygon construction from segments. Solve the geometry problem "Making Shapes".