1 #include<iostream>
2 #include<cstdio>
3 #include<cstring>
4 #include<cmath>
5 #define lli long long int
6 using namespace std;
7 int main()
8 {
9 int n;
10 cin>>n;
11 n--;
12 int now,x;
13 cin>>now;
14 while(n--)
15 {
16 scanf("%d",&x);
17 now^=x;
18 }
19 cout<<now;
20 return 0;
21 }