Problem2187--abc203A - Chinchirorin

2187: abc203A - Chinchirorin

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

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

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

Input

Input is given from Standard Input in the following format:
aabbcc

Output

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

Sample Input Copy

2 5 2

Sample Output Copy

5

HINT

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

Source/Category