#include<bits/stdc++.h>
using namespace std;
#define int long long
#define endl '\n'
#define quick ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
const int inf=0x3f3f3f3f,maxn=2e5+5,mod=998244353;
inline int read(){
	int s=0,w=1;
	char ch=getchar();
	while(ch<'0'||ch>'9'){if(ch=='-')w=-1;ch=getchar();}
	while(ch>='0'&&ch<='9')s=s*10+ch-'0',ch=getchar();
	return s*w;
}
void solve(){
    int n;n=read();
    // vector<int>arr(1000000005);
    // for(int i=0,tmp;i<2*n+1;i++){
    //     cin>>tmp;
    //     arr[tmp]++;
    // }
    // for(int i=0;i<1000000005;i++){
    //     if(arr[i]%2)
    //     {
    //         cout<<i<<endl;
    //         return;
    //     }
    // }
    int ans=0;
    for(int i=0,tmp;i<2*n+1;i++){
        cin>>tmp;
        ans^=tmp;
    }
    cout<<ans<<endl;
    //自己太蠢了
}
signed main(){
	int t=1;
//	cin>>t;
	while(t--){
		solve();
	}
	return 0;
}