T = sc.nextInt();

for(test_case = 1; test_case <= T; test_case++) {

// 이 부분에서 알고리즘 프로그램을 작성하십시오.

int sc_cnt = sc.nextInt();

int total = 0;


for(int i = 0; i < sc_cnt; i++){

if(sc.hasNextInt()){

if(i == 0){

total = sc.nextInt();

}

else{

total=total^sc.nextInt();

}

}

}

System.out.println("Case #" + test_case);

System.out.println(total);