In front of .
. What is the minimum number of times has to click either buttons to get
from
?
Input Specification
The first and only line of input will contain 2 integers, and
(
.
Output Specification
Print a single number - the minimum number of times from
.
Sample Input 1
4 6
Sample Output 1
2
Explanation: Push the red button once, then the blue button once.
Sample Input 2
10 1
Sample Output 2
9
Explanation: Click the red button 9 times.
Comments