import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner in=new Scanner(System.in); int q=in.nextInt(); String ans="YES"; while(q-->0){ int points=in.nextInt(); int x[]=new int[points]; int y[]=new int[points]; int max_x=Integer.MIN_VALUE; int max_y=Integer.MAX_VALUE; for(int i=0;i