Score : $600$ points
Takahashi has written an integer $X$ on a blackboard. He can do the following three kinds of operations any number of times in any order:
Find the minimum number of operations required to have $Y$ written on the blackboard.
Input is given from Standard Input in the following format:
$X$ $Y$
Print the answer.
3 9
3
Initially, $3$ is written on the blackboard. The following three operations can make it $9$:
7 11
3
The following procedure can make the value on the blackboard $11$:
1000000000000000000 1000000000000000000
0
If the value initially written on the blackboard equals $Y$, print $0$.