H. Euclidean Pizza
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

You are a time traveler tasked with the duty of introducing pizza to the ancient Greeks. Along your journey, you meet the mathematician Euclid. After studying the pizza you have brought, Euclid gives you a problem. He tells you to envision the pizza as a 2D plane centered at the origin. The toppings are represented as $$$N$$$ points scattered on the plane. Additionally, the "crust" of the pizza is represented by $$$M$$$ points scattered on the plane. He defines "a slice of pizza" as a valid triangle comprised of 2 crust points and the origin. Euclid asks you to count the number of topping points that are enclosed within some valid slice of pizza (including toppings on the boundary).

Input

The first line of input contains 2 space-separated integers $$$N, M\ (0 \leq N \leq 5 \cdot 10^4, 4 \leq M \leq 5 \cdot 10^4) - $$$ the number of topping and crust points, respectively.

Note: It is guaranteed that there is at least 1 crust point in each of the 4 quadrants.

The next $$$N$$$ lines of input contain 2 space-separated integers $$$x, y\ (-10^9 \leq x, y \leq 10^9) - $$$ the $$$x$$$ and $$$y$$$ coordinates of the $$$i^{th}$$$ topping point.

The next $$$M$$$ lines of input contain 2 space-separated integers $$$x, y\ (-10^9 \leq x, y \leq 10^9) - $$$ the $$$x$$$ and $$$y$$$ coordinates of the $$$i^{th}$$$ crust point.

Note: It is guaranteed that no two points, topping or crust, have the same $$$x$$$ or $$$y$$$ values.

Output

Please output 1 integer, the total number of topping points that are enclosed within some slice of pizza.

Examples
Input
5 6
2 2
-8 0
-3 1
4 -3
0 4
8 -2
3 3
-2 6
-1 5
1 -1
-4 -4
Output
3
Input
2 5
3 -2
1000000000 1000000000
0 0
1 1
-2 2
-3 -3
4 -4
Output
0
Note

The first sample case is drawn below (toppings represented by orange points and crusts represented by black points). Two example pizza slices are also drawn. Three out of the five toppings can be enclosed by a slice. Observe that no other topping can be enclosed by a slice.