#include <cstdio>
#include <iostream>

using namespace std;

int main(int argc, char** argv) {
 int T;

 cin >> T;
    for(test_case = 1; test_case <= T; ++test_case) {
       int n=0;
    cin >> n;
    int a[n],j=0;
    for(j=0;j<n;j++)
        cin >> a[j];
    int result=a[0];
    for(j=1;j<n;j++)
        result^=a[j];     
 
  cout << "Case #" << test_case << endl;
  cout << result << endl;
 }
 return 0; 
}


처음에 씨언어 할때 그거 지우지마라 그거때매 안된듯 c++ 로 하니까 되네