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) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ Scanner sc = new Scanner(System.in); int q = sc.nextInt(); while(q-- > 0){ int n = sc.nextInt(); for(int i=1;i<=n;i++){ int x = sc.nextInt(); int y = sc.nextInt(); } System.out.println(n%2 !=0 ?"YES" :"NO"); } } }