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 aabb, and cc.
If there are two same numbers among aabb, and cc, print the remaining number. Otherwise, print 00.

Constraints

  • 1 \leq a,b,c \leq 61a,b,c6
  • All of aabb, and cc are integers.

Input

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

Output

If there are two same numbers among aabb, 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