100 atcoder#ABC203A. [ABC203A] Chinchirorin
[ABC203A] Chinchirorin
Score : points
Problem Statement
Takahashi threw three dice, and they showed three numbers , , and .
If there are two same numbers among , , and , print the remaining number. Otherwise, print .
Constraints
- All of , , and are integers.
Input
Input is given from Standard Input in the following format:
Output
If there are two same numbers among , , and , print the remaining number. Otherwise, print .
2 5 2
5
The first and third dice both showed , so we should print the number on the remaining dice, which is .
4 5 6
0
Any two numbers are different, so we should print .
1 1 1
1
Any two numbers are the same. Whichever two dice we choose, the number on the remaining dice will be .