The first line contains the number of points N (1≤N≤100000).
Each of the next N lines contains the coordinates x and y of one point, separated by a space (0≤x,y≤1000000).
The next line contains the number of queries M (1≤M≤100000).
Each of the next M lines contains one query as x, y, r, separated by spaces (0≤x,y≤1000000, 1≤r≤1000000).
Every number in the input is an integer.