Manhattan Triangle

From Codeforces. Manhattan distance triangle. Solve the geometry problem "Manhattan Triangle".

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

Manhattan Triangle

**From Codeforces.** Manhattan distance triangle. Solve the geometry problem "Manhattan Triangle".