You are given
A possible position of lines.
Important note: No three lines will intersect at the same point.
Input Specification
The first line of input contains the integer
Each of the following
All numbers will have absolute value at most
Output Specification
The first and only line of output must consist of the required number from the task.
Scoring
In test cases worth
Sample Input 1
Copy
6
0 1 0
-5 3 0
-5 -2 25
0 1 -3
0 1 -2
-4 -5 29
Sample Output 1
Copy
10
Explanation for Sample Output 1
The example corresponds to the image in the task.
Sample Input 2
Copy
5
-5 3 0
-5 -3 -30
0 1 0
3 7 35
1 -2 -1
Sample Output 2
Copy
10
Comments