Problem9382--ABC203 —— A - Chinchirorin

9382: ABC203 —— A - Chinchirorin

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 512 MiB

Description

Takahashi threw three dice, and they showed three numbers $a$, $b$, and $c$.

If there are two same numbers among $a$, $b$, and $c$, print the remaining number. Otherwise, print $0$.

Input

Input is given from Standard Input in the following format:

```
$a$ $b$ $c$
```

Output

If there are two same numbers among $a$, $b$, and $c$, print the remaining number. Otherwise, print $0$.

Constraints

-   $1 \leq a,b,c \leq 6$
-   All of $a$, $b$, and $c$ are integers.

Sample 1 Input

2 5 2

Sample 1 Output

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

Sample 2 Input

4 5 6

Sample 2 Output

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

Sample 3 Input

1 1 1

Sample 3 Output

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

Source/Category