IntermediateRating 1100
Centre of the Star
The graph is a star: one centre node joined to every other node, and no other edges. Print the centre.
Input
n; then n − 1 lines 'u v'.
Output
One integer.
Sample 1
Input
4 1 2 2 3 4 2
Output
2
Sample 2
Input
5 1 2 5 1 1 3 1 4
Output
1
Output appears here