100 atcoder#ABC203A. [ABC203A] Chinchirorin

[ABC203A] Chinchirorin

Score : 100100 points

Problem Statement

Takahashi threw three dice, and they showed three numbers aa, bb, and cc.

If there are two same numbers among aa, bb, and cc, print the remaining number. Otherwise, print 00.

Constraints

  • 1a,b,c61 \leq a,b,c \leq 6
  • All of aa, bb, and cc are integers.

Input

Input is given from Standard Input in the following format:

aa bb cc

Output

If there are two same numbers among aa, bb, and cc, print the remaining number. Otherwise, print 00.

2 5 2
5

The first and third dice both showed 22, so we should print the number on the remaining dice, which is 55.

4 5 6
0

Any two numbers are different, so we should print 00.

1 1 1
1

Any two numbers are the same. Whichever two dice we choose, the number on the remaining dice will be 11.