Triangles#239

Triangles

0.1 seconds
64 megabytes
Easy

points are given on the plane with integer coordinates. No three points lie on one line. Find , the number of triangles with vertices at these points and integer area.

Input

The first line contains . Each of the next lines contains two integers x_i, y_i, the coordinates of the next point. It is known that 0 < n, |x_i|, |y_i| \leq 5000.

Output

Print , the answer.

Examples

Example 1

Loading
Loading