#P273. 【例45.2】 筷子大作战

【例45.2】 筷子大作战

Description

A careless student accidentally knocked over the dishwashing uncle's basket in the cafeteria, and chopsticks fell all over the floor.
The uncle got angry and insisted that the student pair up all the chopsticks. Each chopstick has a length, and only chopsticks of the same length can form a pair. However, the uncle told him that there is exactly one chopstick that is unpaired. Can you help the student find the length of the unpaired chopstick?

Input Format

The first line contains a positive integer NN, representing the number of chopsticks (1N5,000,0001≤N≤5,000,000).
The next line contains NN positive integers, representing the lengths LiL_i (1Li2,147,483,6471≤L_i≤2,147,483,647) of each chopstick. There may be many chopsticks of the same length.

Output Format

Output the length of the unpaired chopstick.

Sample

5
1 2 1 2 3
3