NN and the Optical Illusion

From Codeforces. Tangent circles. Solve the geometry problem "NN and the Optical Illusion".

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

NN and the Optical Illusion

**From Codeforces.** Tangent circles. Solve the geometry problem "NN and the Optical Illusion".