# https://codeforces.com/problemset/problem/791/A

a, b = [int(x) for x in input().split(' ')]

count = 0

while a <= b:
    a = 3 * a
    b = 2 * b
    count += 1

print(count)

ba00b60c99e6c1bb00e10523972d06764d87bf17
<mask token>

<mask token>
while a <= b:
    a = 3 * a
    b = 2 * b
    count += 1
print(count)

a, b = [int(x) for x in input().split(' ')]
count = 0
while a <= b:
    a = 3 * a
    b = 2 * b
    count += 1
print(count)

# https://codeforces.com/problemset/problem/791/A

a, b = [int(x) for x in input().split(' ')]

count = 0

while a <= b:
    a = 3 * a
    b = 2 * b
    count += 1

print(count)
