Problem1077--Sequence

1077: Sequence

[Creator : ]
Time Limit : 1 sec  Memory Limit : 128 MB

Description

There is a sequence of n numbers. And in this sequence, there is only one number appears twice.
Can you tell me which number appears twice.

Input

There are multiple test cases in the input file.
In each case the first line contains an integer n (2<=n<=1000) — the size of the sequence.
The second line contains n integers a1, a2, ..., an (1<=ai<=1000) — the elements of the sequence.

Output

For each case print a single line with the number.

Sample Input Copy

2
1 1
4
1 2 2 3

Sample Output Copy

1
2

Source/Category