A new mine clearing machine has arrived at the site. One activation removes every mine inside a 10m × 10m square at once, and mines lying on the border of that square are removed as well. Two sides of the square are parallel to the x-axis and the other two are parallel to the y-axis, and the machine can be placed anywhere on the site.
The positions of all mines buried in the 10,000m × 10,000m site are known. Write a program that finds the largest number of mines one activation can remove.
The first line contains the number of test cases T (1≤T≤10).
The first line of each test case contains the number of mines N (4≤N≤100000), and the next N lines give the coordinates of the mines, one mine per line. Each of those lines holds two integers between 0 and 10000 separated by a single space, the x-coordinate first and the y-coordinate second. No two mines sit at the same coordinates, and a mine is small enough that its size can be ignored.
For each test case, print on its own line the largest number of mines one activation can remove.