a, b = input().split()
c = 0
for i in range(100):
    if int(a) > int(b):
        print(c)
        break
    else:
        a = int(a) * 3
        b = int(b) * 2
        c = int(c) + 1

bf5ebfb2c2230a765104cc867d419ce8ef0420f7
<mask token>

<mask token>
for i in range(100):
    if int(a) > int(b):
        print(c)
        break
    else:
        a = int(a) * 3
        b = int(b) * 2
        c = int(c) + 1

a, b = input().split()
c = 0
for i in range(100):
    if int(a) > int(b):
        print(c)
        break
    else:
        a = int(a) * 3
        b = int(b) * 2
        c = int(c) + 1
