Convex Shape

From Codeforces. Convexity check on grid points. Solve the geometry problem "Convex Shape".

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

Convex Shape

**From Codeforces.** Convexity check on grid points. Solve the geometry problem "Convex Shape".