Time limit
2s
Memory limit
128 MB
Dongju wants to create a large spiderweb-shaped artwork in a field.
The N pillars are placed as the vertices of a convex polygon. Dongju may connect two pillars with a rope only if all of the following conditions are satisfied.
Find the maximum number of ropes that can be connected while satisfying all conditions.
The first line contains the number of pillars N (1 ≤ N ≤ 150), the number of puddles G (0 ≤ G ≤ 100), and the puddle radius R (1 ≤ R ≤ 100,000).
Each of the next N lines contains the coordinates x and y of one pillar. Each of the following G lines contains the coordinates x and y of the center of one puddle.
All coordinates are integers between 0 and 1,000,000 inclusive, and all coordinate points appearing in the input are distinct. The given pillars are the vertices of one convex polygon.
Print the maximum number of ropes that can be connected.