Mahmoud and a Triangle

From Codeforces. Triangle inequality on sorted array. Solve the geometry problem "Mahmoud and a Triangle".

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

Mahmoud and a Triangle

**From Codeforces.** Triangle inequality on sorted array. Solve the geometry problem "Mahmoud and a Triangle".