Bear Limak wants to become the largest of bears, or at least to become larger than his brother Bob.

Right now, Limak and Bob weigh *a* and *b* respectively. It's guaranteed that Limak's weight is smaller than or equal to his brother's weight.

Limak eats a lot and his weight is tripled after every year, while Bob's weight is doubled after every year.

After how many full years will Limak become strictly larger (strictly heavier) than Bob?
The only line of the input contains two integers *a* and *b* (1 ≤ *a* ≤ *b* ≤ 10) — the weight of Limak and the weight of Bob respectively.
In the first sample, Limak weighs 4 and Bob weighs 7 initially. After one year their weights are 4·3 = 12 and 7·2 = 14 respectively (one weight is tripled while the other one is doubled). Limak isn't larger than Bob yet. After the second year weights are 36 and 28, so the first weight is greater than the second one. Limak became larger than Bob after two years so you should print 2.

In the second sample, Limak's and Bob's weights in next years are: 12 and 18, then 36 and 36, and finally 108 and 72 (after three years). The answer is 3. Remember that Limak wants to be larger than Bob and he won't be satisfied with equal weights.

In the third sample, Limak becomes larger than Bob after the first year. Their weights will be 3 and 2 then.
4 7
2
4 9
3
1 1
1
4 6
2
1 10
6
1 1
1
1 2
2
1 3
3
1 4
4
1 5
4
1 6
5
1 7
5
1 8
6
1 9
6
1 10
6
2 2
1
2 3
2
2 4
2
2 5
3
2 6
3
2 7
4
2 8
4
2 9
4
2 10
4
3 3
1
3 4
1
3 5
2
3 6
2
3 7
3
3 8
3
3 9
3
3 10
3
4 4
1
4 5
1
4 6
2
4 7
2
4 8
2
4 9
3
4 10
3
5 5
1
5 6
1
5 7
1
5 8
2
5 9
2
5 10
2
6 6
1
6 7
1
6 8
1
6 9
2
6 10
2
7 7
1
7 8
1
7 9
1
7 10
1
8 8
1
8 9
1
8 10
1
9 9
1
9 10
1
10 10
1
10 10
1
1 2
2
# Thoughts on solving this problem:
"""
The weight of the first bear has to be
strictly larger than the second bear.

Bear1's weight goes up 300% each year.
Bear2's weight goes up 200% each year.

The solution should be to increase the
weight of each bear and do a comparison
for each period. When Bear1's weight is
larger than Bear2's weight, that year
number will be the answer to the input.
"""
input = input()  # get judge input.

list = list(input)  # turn string into list.

bearL = int(list[0])  # assign value 1 to bearL
bearB = int(list[2])  # assign value 2 fo bearB
years = 0  # create a years counter and set to 0

goAhead = True
while (goAhead):

    if bearL <= bearB:
        years += 1  # increase number of years.
        bearL *= 3  # increase bearL weight by 3x
        bearB *= 2  # increase bearB weight by 2x

    if bearL > bearB:  # look to see if bearL is bigger
        goAhead = False  # if so, stop looping

print(years)  # print number of loops (years) it took.
