Crazy Town

From Codeforces. Line crossing count between two points. Solve the geometry problem "Crazy Town".

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

Crazy Town

**From Codeforces.** Line crossing count between two points. Solve the geometry problem "Crazy Town".