LearnPy Hub
← Arena
EasyRating 1000

The Lonely Number

Every number appears twice except one. Print it using XOR.

Input

n, then n integers.

Output

The single number.

Sample 1

Input
3
2 2 1
Output
1

Sample 2

Input
5
4 1 2 1 2
Output
4
solution.py
Output appears here
The Lonely Number · Python Arena problem · LearnPy Hub