The first line contains the number of people N and the number of queries Q, separated by a space. (1≤N,Q≤100000)
Each of the next N lines contains the coordinates Xi and Yi of person i, separated by a space. (−1000000000≤Xi,Yi≤1000000000)
Each of the next Q lines contains Li and Ri of a query, separated by a space. (1≤Li≤Ri≤N)