Average value#10051

Average value

1 second
64 megabytes
Very easy

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.

-10^{18} \leq N, K, M \leq 10^{18}

Input

The input consists of three numbers: , , and , separated by spaces.

Output

Output a single line with the answer to the problem.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading