409993: GYM103895 C Ellie the Elephant
Description
Ellie is an elephant searching for a prize. He is given $$$n$$$ baskets of peanuts and is told to find the basket that has a unique number of peanuts. Every other basket has exactly 1 other basket that has the same number of peanuts that it has. In formal terms, if a basket has $$$p$$$ peanuts, then exactly 1 other basket will have exactly $$$p$$$ peanuts also. Determine how many peanuts are in the basket that has a unique number of peanuts.
InputThe first and only line of input will contain $$$n$$$ integers ($$$1 \leq n \leq 10000$$$)., representing the number of peanuts in each of the $$$n$$$ baskets. Each basket can have $$$x$$$ peanuts, where ($$$1 \leq x \leq 10000$$$).
OutputDetermine the number of peanuts in the basket that has a unique number of peanuts.
ExamplesInput6 7 8 7 6Output
8Input
1 1 2 2 3Output
3