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
# Решение задач проекта CODEFORSES, Задача 791A
#
# (C) 2021 Артур Ще, Москва, Россия
# Released under GNU Public License (GPL)
# email [email protected]
# -----------------------------------------------------------

'''
A. Мишка и старший брат
ограничение по времени на тест1 секунда
ограничение по памяти на тест256 мегабайт
вводстандартный ввод
выводстандартный вывод
Мишка Лимак хочет стать самым большим медведем, ну, или хотя бы стать больше своего старшего брата Боба.

Сейчас вес Лимака равен a, а вес Боба равен b. Гарантируется, что вес Лимака меньше или равен весу Боба.

Лимак ест много, и его вес утраивается каждый год, а вес Боба удваивается каждый год.

Через сколько целых лет Лимак станет строго больше (т. е. будет весить строго больше) Боба?

Входные данные
В единственной строке находятся два целых числа a и b (1 ≤ a ≤ b ≤ 10) — веса Лимака и Боба соответственно.

Выходные данные
Выведите одно целое число — через сколько целых лет Лимак станет строго больше Боба.
'''

from datetime import datetime
import time
start_time = datetime.now()
import functools
from itertools import *
from collections import Counter
import random
import math

a=[int(i) for i in input().split()]
#print (a)
q = 1
while (a[0]*3) < (a[1]*2):
    a[0] = a[0]*3
    a[1] = a[1]*2
    q=q+1
print(q)
#print(ANS,'   TIME:',datetime.now() - start_time) 