Given three integers , , , identify the position (starting from ) of the number that is neither the maximum nor the minimum among them. If no such number exists, output 0.
The input consists of three numbers: , , and , separated by spaces.
Output a single line with the answer to the problem.
Example 1
Example 2
Example 3