The input is given from standard input. The first line contains the number of lights N (1≤N≤100000).
The next N lines each contain two integers Xi,Yi (−1500≤Xi,Yi≤1500), the position of each light.
The next line contains the number of query points P (1≤P≤100000).
The next P lines each contain two integers Xpi,Ypi (−1500≤Xpi,Ypi≤1500), the coordinates of each point whose intensity is asked.