Points

No attempts yetTime limit1sMemory limit128 MB

Problem

There are n+mn + m points on the plane. Exactly nn of them are white and the remaining mm are black.

Count the number of triangles whose three vertices are white points and that contain no black point in their interior.

You may assume that no three points are collinear.

Input

The first line contains two integers nn and mm (0n,m5000 \le n, m \le 500), the number of white points and the number of black points, respectively.

The next nn lines describe the white points, and the following mm lines describe the black points. Each line contains two integers xx and yy (109x,y109-10^9 \le x, y \le 10^9), the coordinates of a point.

Output

Print, on a single line, the number of triangles with white vertices that contain no black point inside.

Hint

The figure above illustrates the first example.