import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int q = sc.nextInt(); while(q-->0) { int n = sc.nextInt(); int a[][] = new int[n][2]; for(int i=0;i=2 && x<2) codx[x++]=px; if(c2>=2 && y<2) cody[y++]=py; } int flag=1; for(int i=0;i