The Lonely Number
Every value appears exactly twice except one, which appears once. Find it using extra memory (hint: XOR).
Input
(odd), then integers.
Output
The single value.
Constraints
Sample 1
Input
5 4 1 2 1 2
Output
4
Sample 2
Input
1 7
Output
7