Company: Arcesium_19dec
Difficulty: medium
Weird Stock Problem Description Our very own Suppandi has decided to start investing in the stock market. He has decided that to begin with he will buy shares of company X. The shares of company X have the following behavior: 1. The price of the share remains the same throughout the day. 2. At the end of the day the share price either reduces by $1 or becomes double. Suppandi has decided that he will buy the share once the share price reaches m $/share. Can you help Suppandi calculate the minimum number of days after which he'll be able to buy the shares of Company X, given the price of the share on Day 0 is n $/share. Input Format The input consists of 2 lines each containing an integer. The first line denotes n , the initial price of the stock and the next line denotes m , the price at which Suppandi wants to buy the share. Output Format Print a single integer, the minimum number of days after which Suppandi will be able to buy shares of Company X. Constraints 0 < n, m <= 10000