Ante bought a piece of land. The land contains
Your program will be given the coordinates of the vertices of the triangle forming Ante's piece, and the coordinates of all apple trees. Determine the area of land belonging to Ante, and the number of trees belonging to him. We consider apple trees on the very border of his piece to belong to him.
The area of a triangle with vertices
Input Specification
The first three lines contain the coordinates of the vertices of the triangle.
The following line contains the integer
Each of the following
Output Specification
Output the area of land belonging to Ante on the first line, with one digit after the decimal point.
Output the number of trees belonging to Ante on the second line.
Sample Input 1
1 1
5 1
3 3
4
3 1
3 2
3 3
3 4
Sample Output 1
4.0
3
Sample Input 2
3 2
5 4
1 6
3
2 4
3 5
4 3
Sample Output 2
6.0
3
Sample Input 3
2 6
5 1
7 8
5
1 4
3 5
6 4
6 5
4 7
Sample Output 3
15.5
2
Comments