### COCI 2007/2008, Contest #5

## Task JABUKE

Ante bought a piece of land. The land contains N apple trees, but his piece is triangular and it is not easy for him to determine which apple trees belong to him.

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 (x_{A}, y_{A}), (x_{B}, y_{B}) and (x_{C}, y_{C}) is given by the following formula:

### Input

The first three lines contain the coordinates of the vertices of the triangle.

The following line contains the integer N (1 ≤ N ≤ 100), the number of apple trees.

Each of the following N lines contains the coordinates of one apple tree.

All coordinates are pairs of positive integers less than 1000, separated by a space.

### Output

Output the area of land belonging to Ante on the first line, with one digit after the decimal point.

Output the number of tree belonging to Ante on the second line.

### Examples

## Input1 1 5 1 3 3 4 3 1 3 2 3 3 3 4 ## Output4.0 3 |
## Input3 2 5 4 1 6 3 2 4 3 5 4 3 ## Output6.0 3 |
## Input2 6 5 1 7 8 5 1 4 3 5 6 4 6 5 4 7 ## Output15.5 2 |

All Submissions

Best Solutions

**Point Value:** 7

**Time Limit:** 1.00s

**Memory Limit:** 32M

**Added:** Jan 29, 2009

**Languages Allowed:**

C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3

## Comments (Search)

It's quiet in here...