Question
Population Doubling

A city currently has a population of x. Every year the population doubles. Find the minimum number of years it will take for the population to become greater than or equal to y.

 

Input

A single line containing two integers KaTeX can only parse string typed expression and KaTeX can only parse string typed expression.

Output

A single integer — the minimum number of years.

Example
Example 1:
Input
1 1000
Output
10
Explanation
Starting from 1, doubling 10 times gives 1024 ≥ 1000.

Example 2:
Input
5 5
Output
0
Explanation
Population already meets the target, so 0 years needed.

Online