atcoder#ABC236B. [ABC236B] Who is missing?
[ABC236B] Who is missing?
Score : points
Problem Statement
We have cards with an integer written on it, cards with , , cards with , for a total of cards.
Takahashi shuffled these cards, removed one of them, and gave you a pile of the remaining cards. The -th card of the pile has an integer written on it.
Find the integer written on the card removed by Takahashi.
Constraints
- For each , there are at most indices such that .
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
3
1 3 2 3 3 2 2 1 1 1 2
3
Takahashi removed a card with written on it.
1
1 1 1
1
4
3 2 1 1 2 4 4 4 4 3 1 3 2 1 3
2