Liam plays a tower defense game. He destroys his opponent's minions while defending his own villages.
Liam's favorite attack is an area of effect attack. The attack range is a perfect circle. Liam picks a center and a radius, and every minion inside that circle or on it is destroyed. A minion is a point with no size.
The attack must not damage Liam's villages. A village is also a perfect circle. The attack circle may touch the wall of a village, but it must not reach inside the village. For a village with center (vx,vy) and radius vr, and an attack with center (cx,cy) and radius ρ, the distance between the two centers must be at least ρ+vr.
The attack radius has an upper limit r. Liam can attack with a radius smaller than the limit, but never with a larger one.
Find the largest number of minions that one attack destroys without touching any village.
The first line contains three integers n, m, r separated by spaces.
Each of the next n lines contains three integers vx, vy, vr describing one village. (vx,vy) is its center (−20000≤vx,vy≤20000) and vr is its radius (1≤vr≤20000). No two villages intersect or overlap.
Each of the next m lines contains two integers mx, my, the position of one minion (−20000≤mx,my≤20000). No two minions share a position, and no minion is inside a village. A minion can be on the wall of a village.
Print one integer, the largest number of minions destroyed by a single attack.