#include<stdio.h>
int main()
{
int T;
int n,m;
while(~scanf("%d",&T),T){
scanf("%d",&n);
T--;
while(T--){
scanf("%d",&m);
n ^=m;
}
printf("%d\n",n);
}
}
链接http://acm.hdu.edu.cn/showproblem.php?pid=2095
int main()
{
int T;
int n,m;
while(~scanf("%d",&T),T){
scanf("%d",&n);
T--;
while(T--){
scanf("%d",&m);
n ^=m;
}
printf("%d\n",n);
}
}
链接http://acm.hdu.edu.cn/showproblem.php?pid=2095