You are given two integers, a and b. You want to transform a into b by performing a sequence of operations. You can only perform the following operations:
What is the minimum number of operations you need to transform a into b?
The single line of input contains two space-separated integers a and b (1 ≤ a, b ≤ 109)
Output a single integer, which is the minimum number of the given operations needed to transform a into b.