/** * A position is losing if there is an even number of piles and all values * are odd. * A position is also losing if there is an odd number of piles and all * values are odd after removing as many powers of 2 as the pile with the * smallest number of factors of 2. * Otherwise a position is winning. * * @author Finn Lidbetter */ import java.util.*; public class splitting_pairs_finn { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int numTests = sc.nextInt(); for (int test=0; test