Intersection of two lines

From CSES. Cross product orientation test. Solve the geometry problem "Intersection of two lines".

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

Intersection of two lines

**From CSES.** Cross product orientation test. Solve the geometry problem "Intersection of two lines".