Average value
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Given three integers N, K, M, identify the position (starting from 1) of the number that is neither the maximum nor the minimum among them. If no such number exists, output 0.
Constraints
-10^18
≤ N, K, M ≤ 10^18
.
Input
The input consists of three numbers: N, K, and M, separated by spaces.
Output
Output a single line with the answer to the problem.
Examples
Input #1
Answer #1
Input #2
Answer #2
Input #3
Answer #3
Submissions 1K
Acceptance rate 38%