#include<bits/stdc++.h> #define c cout using namespace std; int ans,n; int main(){ cin>>n; for(int i=1;i<=n;i++){ int x; cin>>x; ans^=x; } c<<ans; }