Two distinct points and distinct points are given on the two-dimensional plane. All points are at distinct positions, and no three of them are collinear.
Choose three points with . The positional relationship between the triangle formed by these points and the segment is exactly one of the following four types.
- Type 1: The segment is completely contained in the interior of the triangle.
- Type 2: The segment intersects the boundary of the triangle exactly once.
- Type 3: The segment intersects the boundary of the triangle exactly twice.
- Type 4: The segment and the triangle are disjoint.
For every triangle that can be formed, count how many triangles have each type of relationship.
Input
The input is given from Standard Input in the following format:
Each case is given in the following format:
The coordinates of and are and , respectively. The coordinates of are .
Output
For each test case, print one line containing four integers separated by spaces: the numbers of triangles of Type 1, Type 2, Type 3, and Type 4, in this order.
Constraints
- .
- .
- The sum of over all test cases does not exceed .
- .
- ().
- The points in each test case are pairwise distinct.
- No three of the points in a test case are collinear.
Subtasks
Samples
There is only one triangle in each test case. In input order, the four triangles have Type 1, Type 2, Type 3, and Type 4, respectively.