Right Triangles

From Codeforces. Right triangle detection from points. Solve the geometry problem "Right Triangles".

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

Right Triangles

**From Codeforces.** Right triangle detection from points. Solve the geometry problem "Right Triangles".