Irrigation Interlock

From Codeforces. Geometry. Solve the geometry problem "Irrigation Interlock".

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

Irrigation Interlock

**From Codeforces.** Geometry. Solve the geometry problem "Irrigation Interlock".