From atop a satellite, Nick has drawn lines on the surface of a plane, no three of which intersect at a common point. He counts many triangles, but how many of them contain no triangles with a strictly smaller area?
All lines are pairwise distinct.
No three lines intersect at a common point.
The first line contains a single positive integer, .
The next lines contain four space-separated integers, , , , , indicating a line going through distinct points and .
Output the number of such triangles.
4 0 0 0 10 0 0 10 0 0 5 5 5 0 10 10 0