"""
 *
 * Author:  <NAME>(coderemite)
 * Email: <EMAIL>
 *
 """
a, b = map(int, input().split())
for y in range(1,20):
	a, b = a*3, b*2
	if a > b:
		print(y)
		break

"""
 *
 * Author:  <NAME>(coderemite)
 * Email: <EMAIL>
 *
 """
a, b = map(int, input().split())
for y in range(1,20):
	a, b = a*3, b*2
	if a > b:
		print(y)
		break

*  * Author:  <NAME>(coderemite)  * Email: <EMAIL>  *