Make a triangle!

From Codeforces. Minimum perimeter increase. Solve the geometry problem "Make a triangle!".

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

Make a triangle!

**From Codeforces.** Minimum perimeter increase. Solve the geometry problem "Make a triangle!".