Score : $300$ points
You are given three integers $A$, $B$ and $C$. Find the minimum number of operations required to make $A$, $B$ and $C$ all equal by repeatedly performing the following two kinds of operations in any order:
It can be proved that we can always make $A$, $B$ and $C$ all equal by repeatedly performing these operations.
Input is given from Standard Input in the following format:
$A$ $B$ $C$
Print the minimum number of operations required to make $A$, $B$ and $C$ all equal.
2 5 4
2
We can make $A$, $B$ and $C$ all equal by the following operations:
2 6 3
5
31 41 5
23