The first line contains the number of points N. (1≤N≤100,000)
Each of the next N lines contains the integer coordinates x, y, z of one point. (0≤x,y,z≤1,000,000)
The next line contains the number of queries M. (1≤M≤100,000)
Each of the next M lines contains one query as the integers x, y, z, r. (0≤x,y,z≤1,000,000, 1≤r≤1,000,000)