Cow Steeplechase

From USACO. Shape / Geometry. Solve the geometry problem "Cow Steeplechase".

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

Cow Steeplechase

**From USACO.** Shape / Geometry. Solve the geometry problem "Cow Steeplechase".