Bad Triangle

From Codeforces. Triangle inequality. Solve the geometry problem "Bad Triangle".

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

Bad Triangle

**From Codeforces.** Triangle inequality. Solve the geometry problem "Bad Triangle".