import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) { int q; int n; Set x_set = new HashSet(); Set y_set = new HashSet(); Scanner input = new Scanner(System.in); q = input.nextInt(); for(int i = 0; i < q; i++) { n = input.nextInt(); for(int j=0; j